README
array-reverse-filter
The opposite of Array#filter; this method returns the elements of collection that predicate does not return truthy for.
install
npm install array-reverse-filter
use as :
var exclude = require('array-reverse-filter');
var numbers = [1,2,3,4,5,NaN,6,7,NaN];
exclude(numbers, [NaN, 2, 3]); // [1,4,5,6,7];
var jedi = [{name:'anakin', dark:true}, {name: 'luke', dark:false}];
exclude(jedi, {dark: true}); // [{name: 'luke', dark:false}];
notes
Internally it uses Array#includes
(proposal for ECMAScript 2016)... so the execution environment should provide a polyfill when necessary; more info here: Array#includes mdn.