📅  最后修改于: 2022-03-11 15:02:36.050000             🧑  作者: Mango
代码示例1
//If you can use lodash library
let array=[1,2,3]
_.xor(array, [2]) //returns [1,3]
_.xor(array, [4]) //returns [1,2,3,4]