Creates an array of array values not included in the other given arrays using SameValueZero for equality comparisons. The order and references of result values are determined by the first array.
array
SameValueZero
Note: Unlike pullAll, this method returns a new array.
pullAll
The array to inspect.
Rest
The values to exclude.
Returns the new array of filtered values.
5.9.0
union, unionBy, unionWith, without, xor, xorBy, xorWith,
difference([2, 1], [2, 3])// => [1] Copy
difference([2, 1], [2, 3])// => [1]
Creates an array of
array
values not included in the other given arrays usingSameValueZero
for equality comparisons. The order and references of result values are determined by the first array.Note: Unlike
pullAll
, this method returns a new array.