Remove duplicates in object arrays
We have an object with multiple arrays inside it, and we need to remove duplicates between these arrays.
const obj = {
arr1: ['a', 'b', 'c' ],
arr2: ['a','b', 'd', 'e', 'f' ],
}
First of all, we have to get the two arrays and merge their items ...
giuliachiola.hashnode.dev3 min read