2.0.0 • Published 8 years ago

array-reverse-filter v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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.

2.0.0

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago