es6 remove duplicate objects from array and merge sub code example
Example: remove duplicate array es6
let a = [10,20,30,10,30];
let b = [... new Set(a)];
console.log(b);
let a = [10,20,30,10,30];
let b = [... new Set(a)];
console.log(b);