differenceWith
Filters out all values from an array for which the comparator function does not return true
.
- Use
Array.prototype.filter()
andArray.prototype.findIndex()
to find the appropriate values. - Omit the last argument,
comp
, to use a default strict equality comparator.