Here is an example js array:
var arr = [
{
name: 'test1',
price: 20,
otherKey: 123,
yetAnotherKey: 'val'
},
{
name: 'test2',
price: 10,
otherKey: 11,
yetAnotherKey: 'erewrwert'
},
{
name: 'test1',
price: 20,
otherKey: 123,
yetAnotherKey: 'val'
}
]
Is there a way to find duplicate object (by all key/value pairs)? If so - how to do that? Thanks in advance.