Optional
values: List<T2>The arrays to inspect.
Optional
comparator: Comparator2<T1, T2>The comparator invoked per element.
Returns the new array of filtered values.
var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
_.intersectionWith(objects, others, _.isEqual);
// => [{ 'x': 1, 'y': 2 }]
_.intersectionWith
Rest
...values: (List<T4> | Comparator2<T1, T2 | T3 | T4>)[]_.intersectionWith
Optional
array: null | List<T>Rest
...values: (List<T> | Comparator2<T, never>)[]_.intersectionWith
Generated using TypeDoc
Creates an array of unique
array
values not included in the other provided arrays usingSameValueZero
for equality comparisons.