|
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 |
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by