const list = [{
'name': 'John Doe',
'email': 'john.doe@example.com'
}, {
'name': 'Jane Doe',
'email': 'jane.doe@example.com'
}];
const isEqual = (first, second) => {
return JSON.stringify(first) === JSON.stringify(second);
}
const result = list.some(e => isEqual(e, {
'name': 'John Doe',
'email': 'john.doe@example.com'
}));
console.log(result); // true