I have a problem to get the diffrent element from 2 array object. my example is just like this:
array1= [{id: 1, a: "a", b: "b"}, {id: 2, c: "c", d: "d"}, {id: 3, e: "e", f: "f"}];
array2 = [{c: "c", d: "d"}];
what I expected is:
the output Result is just like this:
this id in every object is not relevant.
result =[{a: "a", b: "b"},{e: "e", f: "f"}];
I have try to use filter or find in typescript, but is was not working.
any solutions??