xor

Array
since 2.4.0

Arguments

  • ...Array The arrays to inspect.

Returns

Array the new array of filtered values.

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.

Example of Lodash _.xor

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