JS вычтите массивы
let difference = arrA.filter(x => !arrB.includes(x));
Adventurous Ant
let difference = arrA.filter(x => !arrB.includes(x));
const a = [{id:0},{id:1},{id:2},{id:3}]
const b = [{id:2},{id:3},{id:4},{id:5}]
const difference = a.filter(i=> b.some(i2=> i2.id===i.id)))