js array merge and deduplication

let arr = this.defaultToCc.concat (item.copyFor); // Merge array 

let arrNew = new Set (arr); // Deduplication by set collection

let cc = Array.from (arrNew);
console.log ( "arrNew ", Array.from (arrNew)); // Convert the set collection to a number

Guess you like

Origin www.cnblogs.com/quepq/p/12721555.html