Jul 15, 2021
Helpful article. How would you remove objects that are duplicates in just one value
[
{id:0,key1:'hello', key2:'there'}
{id:1,key1:'hello', key2:'buddy'}
{id:2,key1:'hello', key2:'friend'}
{id:3,key1:'Bye', key2:'buddy'}
{id:4,key1:'Bye', key2:'friend'}
]
to give,
[
{id:0,key1:'hello', key2:'there'}
{id:3,key1:'Bye', key2:'buddy'}
]
or [
{id:0,key1:'hello'}
{id:3,key1:'Bye'}
]
Basically it's the hello and Bye that are important