Open ghost opened 2 years ago
const options = {
arrayMerge: (x, y) => {
const result = x.slice();
for (const element of y) {
const index = x.indexOf(element);
if (index >= 0) {
result.splice(index, 1);
}
}
return result;
}
};
const result = deepmerge(a, b, options);
Hi, I would like to be able to remove a value from my array but with deepmerge the array values only add up. Does anyone have an idea how to solve this problem?