📅  最后修改于: 2022-03-11 15:04:30.954000             🧑  作者: Mango
代码示例2
function diffArray(arr1, arr2) {
return arr1
.concat(arr2)
.filter(item => !arr1.includes(item) || !arr2.includes(item));
}