xxxxxxxxxx
var array = [
{ title: "Something", id: 111 },
{ title: "Something 2", id: 222 },
{ title: "Something 3", id: 333 }
];
var arrayToPush = [
{ title: "Something 4", id: 333 },
{ title: "Something 5", id: 444 },
{ title: "Something 6", id: 555 }
];
var filtered = arrayToPush.filter(a => !array.find(b => b.id === a.id));
var result = [filtered];
console.log(result);
Run code snippetHide results