Files
30-seconds-of-code/test/differenceWith/differenceWith.js
2018-01-09 06:09:49 -05:00

1 line
92 B
JavaScript

module.exports = (arr, val, comp) => arr.filter(a => val.findIndex(b => comp(a, b)) === -1);