What is the best way to filters partial matched object of array in typescript/javascript?
I have one set of object of array that I want to remove the object when value from key ‘name’ is the same
const objArray = [{id: 1, name:{first: 'a', last: 'b'}, phone:123}, {id: 2, name:{first: 'a', last: 'b'}, phone:456}, {id: 3, name:{first: 'c', last: 'd'}, phone:3434}]
// look for return
// [{id: 1, name:{first: 'a', last: 'b'}, phone:123}, {id: 3, name:{first: 'c', last: 'd'}, phone:3434}]