Package Exports
- arr-filter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (arr-filter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
arr-filter 
Faster alternative to javascript's native filter method.
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, reduced down from 10 or 11 additional functions.
Install with npm
npm i arr-filter --save
Install with bower
bower install arr-filter --save
Run tests
npm test
Usage
var filter = require('arr-filter');
filter(['a', {a: 'b'}, 1, 'b', 2, {c: 'd'}, 'c'], function (ele) {
return typeof ele === 'string';
});
//=> ['a', 'b', 'c']
Author
Jon Schlinkert
Other javascript/node.js utils
Other projects that I maintain:
- assemble
- verb
- less.js
- handlebars-helpers
- arr
- arr-diff
- array-last
- array-slice
- array-sum
- arrayify-compact
- compact-object
- delete
- for-in
- for-own
- has-any
- has-value
- is-number
- is-plain-object
- mixin-deep
- mixin-object
- object-length
- omit-empty
- reduce-object
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 04, 2015.