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
js array merge and deduplication
Guess you like
Origin www.cnblogs.com/quepq/p/12721555.html
Recommended
Ranking