Answers for "remove duplicates from array of object in js using set"

0

remove duplicate object from array javascript

const uniqify = (array, key) => array.reduce((prev, curr) => prev.find(a => a[key] === curr[key]) ? prev : prev.push(curr) && prev, []);
Posted by: Guest on August-04-2021

Code answers related to "remove duplicates from array of object in js using set"

Code answers related to "Javascript"

Browse Popular Code Answers by Language