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.
[] The arrays to inspect.
Array Returns the new array of filtered values.
5.7.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.