4.17.11
3.10.1
2.4.2
1.3.1

_.xor([arrays])

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.

Since

2.4.0

Arguments

argument
[arrays]
type
...Array
description
The arrays to inspect.

Returns

(array)

Example

_.xor([2, 1], [2, 3]);
// => [1, 3]
_.xor([2, 1], [2, 3]);
// => [1, 3]