Answers for "how to remove duplicates values from array of objects in javascript"

0

how to remove duplicate array object in javascript

let person = [
{name: "john"}, 
{name: "jane"}, 
{name: "imelda"}, 
{name: "john"},
{name: "jane"}
];

const data = Array.from(new Set(person.map(JSON.stringify))).map(JSON.parse);
console.log(data);
Posted by: Guest on April-22-2020

Code answers related to "how to remove duplicates values from array of objects in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language