Like
Install xor-with as a package?
Copied
npm i @bit/lodash.lodash.xor-with
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
xorWith (
arrays:
...Array?
,comparator:
) : Function?
Array
This method is like xor
except that it accepts comparator
which is
invoked to compare elements of arrays
. The order of result values is
determined by the order they occur in the arrays. The comparator is invoked
with two arguments: (arrVal, othVal).
Example
Arguments
arrays:
...Array?
The arrays to inspect.
comparator:
Function?
The comparator invoked per element.
Returns
Array
Returns the new array of filtered values.