js去除两个数组中重复的元素
let arr1 = [0,1,2,3,4,5];
let arr2 = [0,4,6,1,3,9];
let arr =Array.from(new Set(arr1.concat(arr2)));
console.log('arr',arr); // arr (8) [0, 1, 2, 3, 4, 5, 6, 9]
let arr1 = [0,1,2,3,4,5];
let arr2 = [0,4,6,1,3,9];
let arr =Array.from(new Set(arr1.concat(arr2)));
console.log('arr',arr); // arr (8) [0, 1, 2, 3, 4, 5, 6, 9]