Optional
arrays: null | List<T>The arrays to inspect.
Optional
comparator: Comparator<T>The comparator invoked per element.
Returns the new array of values.
var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
_.xorWith(objects, others, _.isEqual);
// => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
Optional
comparator: Comparator<T>_.xorWith
Rest
...comparator: (undefined | null | List<T> | Comparator<T>)[]_.xorWith
Generated using TypeDoc
This method is like
_.xor
except that it acceptscomparator
which is invoked to compare elements ofarrays
. The comparator is invoked with two arguments: (arrVal, othVal).