JavaScript: Remove duplicates from an array of objects based on key
var users = [
{
name: 'Rahul', email: 'test1@test.com'
},
{
name: 'Rajeev', email: 'test2@test.com'
},
{
name: 'Revanth', email: 'test2@test.com'
}
];
let emailIds = users.map( (item) => {
return item.email;
})
let...
harikrishna.hashnode.dev1 min read