Creates an array of unique array values not included in the other provided arrays using SameValueZero for equality comparisons.
array
SameValueZero
Optional
The arrays to inspect.
The comparator invoked per element.
Returns the new array of filtered values.
var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];_.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);// => [{ 'x': 2, 'y': 1 }] Copy
var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];_.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);// => [{ 'x': 2, 'y': 1 }]
_.differenceWith
Rest
Creates an array of unique
array
values not included in the other provided arrays usingSameValueZero
for equality comparisons.