how to merge duplicate array object value in single array in javascript code example
Example: javascript merge arrays of objects without duplicates
var merged = [...initialData, ...newData.filter(d => !ids.has(d.ID))];
var merged = [...initialData, ...newData.filter(d => !ids.has(d.ID))];