This method is like difference except that it accepts comparator
which is invoked to compare elements of array to values. The order and
references of result values are determined by the first array. The comparator
is invoked with two arguments: (arrVal, othVal).
Note: Unlike pullAllWith, this method returns a new array.
This method is like
difference
except that it acceptscomparator
which is invoked to compare elements ofarray
tovalues
. The order and references of result values are determined by the first array. The comparator is invoked with two arguments: (arrVal, othVal).Note: Unlike
pullAllWith
, this method returns a new array.