_.pullAllWith()
This method is like _.pullAll
except that it accepts comparator which is invoked to compare elements of array to values. The comparator is invoked with two arguments: (arrVal, othVal).
Note: Unlike _.differenceWith
, this method mutates array.
Arguments
array (Array)
: The array to modify.
values (Array)
: The values to remove.
[comparator] (Function)
: The comparator invoked per element.
Returns
(Array)
: Returns array.