Install with npm:
$ npm install --save arr-filter
var filter = ;;//=> ['a', 'b', 'c']
Why another array filter?
array-filter is pretty popular, but it's tuned to be used in older browsers and it falls back on native
.filter() when available, which is much slower. See jsperf results. The functions used in the benchmarks are the top performers from a dozen or so other functions.
- array-each: Loop over each item in an array and call the given function on every element. | homepage
- collection-map: Returns an array of mapped values from an array or object. | homepage
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
This file was generated by verb-generate-readme, v0.4.2, on February 26, 2017.