How to compare an array with another array object's key and then need to delete the resulting object in the third array.
for example, having 3 arrays like
let arr1 = [ {id:1,color:'blue'},{id:2,color:'red'},{id:3,color:'yellow'}];
let arr2 = [{id:2,color:'red'},{id:3,color:'yellow'}];
now want to check
1. the arr1 have the arr2 objects, arr2 object value color with arr1
2. remove the arr2 values in the arr1.
thanks in advance.