NuSphere Forums Forum Index
NuSphere Forums


Tue Aug 06, 2019 9:24 am
Replies: 6
Views: 5034
Use this method:

function uniques(array: any[], key: string) {
return array.reduce((acc, curr) => {
if (!acc.find(item => item[key] === curr[key])) { acc.push(curr); }
return acc ...
Page 1 of 1
All times are GMT - 5 Hours