摘要:
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 阅读全文
摘要:
let arr1 = [0,1,2,3,4,5]; let arr2 = [0,4,6,1,3,9]; const _arr1 =arr1.filter(item1 => !arr2.includes(item1)); const _arr2 =arr2.filter(item2 => !arr1. 阅读全文