Creates an array of unique values that is the symmetric difference of the given arrays. The order of result values is determined by the order they occur in the arrays.
Optional
Rest
The arrays to inspect.
Returns the new array of filtered values.
2.4.0
difference, union, unionBy, unionWith, without, xorBy, xorWith
xor([2, 1], [2, 3])// => [1, 3] Copy
xor([2, 1], [2, 3])// => [1, 3]
Creates an array of unique values that is the symmetric difference of the given arrays. The order of result values is determined by the order they occur in the arrays.