Answers for "hwo to sort through an array in typescript and eliminate duplicates"

1

remove duplicates from array angular

const result = Array.from(this.item.reduce((m, t) => m.set(t.name, t), new Map()).values());
Posted by: Guest on September-08-2021
2

remove duplicates from array javascript

arr.filter((v,i,a)=>a.findIndex(t=>(t.place === v.place && t.name===v.name))===i)
Posted by: Guest on September-10-2020

Code answers related to "hwo to sort through an array in typescript and eliminate duplicates"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language