{"_id":"arr-filter","_rev":"22246","name":"arr-filter","description":"Faster alternative to javascript's native filter method.","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:01:48.000Z","created":"2014-10-01T23:39:43.912Z","1.1.2":"2017-02-27T00:37:50.851Z","1.1.1":"2015-08-01T05:44:43.991Z","1.1.0":"2015-02-17T16:58:15.810Z","1.0.2":"2015-01-13T06:45:32.859Z","1.0.1":"2015-01-13T06:24:01.667Z","1.0.0":"2015-01-04T14:55:18.683Z","0.1.0":"2014-10-01T23:39:43.912Z"},"users":{"rocket0191":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/arr-filter.git"},"versions":{"1.1.2":{"name":"arr-filter","description":"Faster alternative to javascript's native filter method.","version":"1.1.2","homepage":"https://github.com/jonschlinkert/arr-filter","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/arr-filter.git"},"bugs":{"url":"https://github.com/jonschlinkert/arr-filter/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"make-iterator":"^1.0.0"},"devDependencies":{"array-filter":"^1.0.0","benchmarked":"^0.2.5","chalk":"^1.1.3","gulp-format-md":"^0.1.11","micromatch":"^2.3.11","minimist":"^1.2.0","mocha":"^3.2.0"},"keywords":["arr","array","collection","filter","util"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["collection-map","arr-map","array-each"]},"lint":{"reflinks":true}},"gitHead":"5c18625e680aff172e40bd8eda2522346a4660fb","_id":"arr-filter@1.1.2","_shasum":"43fdddd091e8ef11aa4c45d9cdc18e2dff1711ee","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"43fdddd091e8ef11aa4c45d9cdc18e2dff1711ee","size":2786,"noattachment":false,"key":"/arr-filter/-/arr-filter-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/arr-filter/download/arr-filter-1.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/arr-filter-1.1.2.tgz_1488155870284_0.990470303921029"},"directories":{},"publish_time":1488155870851,"_cnpm_publish_time":1488155870851,"_hasShrinkwrap":false},"1.1.1":{"name":"arr-filter","description":"Faster alternative to javascript's native filter method.","version":"1.1.1","homepage":"https://github.com/jonschlinkert/arr-filter","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arr-filter.git"},"bugs":{"url":"https://github.com/jonschlinkert/arr-filter/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"make-iterator":"^0.2.0"},"devDependencies":{"array-filter":"^0.2.0","benchmarked":"^0.1.3","chalk":"^0.5.1","micromatch":"^1.0.1","minimist":"^1.1.0","mocha":"*","should":"*"},"keywords":["array","filter","collection","util"],"gitHead":"0e079d85f76d076d9f1194fab2df9cf1e78c19d1","_id":"arr-filter@1.1.1","_shasum":"5aabe343f7bf21ddb2c54e7befafff4406aacc49","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5aabe343f7bf21ddb2c54e7befafff4406aacc49","size":2387,"noattachment":false,"key":"/arr-filter/-/arr-filter-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/arr-filter/download/arr-filter-1.1.1.tgz"},"directories":{},"publish_time":1438407883991,"_cnpm_publish_time":1438407883991,"_hasShrinkwrap":false},"1.1.0":{"name":"arr-filter","description":"Faster alternative to javascript's native filter method.","version":"1.1.0","homepage":"https://github.com/jonschlinkert/arr-filter","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arr-filter.git"},"bugs":{"url":"https://github.com/jonschlinkert/arr-filter/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/arr-filter/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"make-iterator":"^0.1.0"},"devDependencies":{"array-filter":"^0.2.0","benchmarked":"^0.1.3","chalk":"^0.5.1","micromatch":"^1.0.1","minimist":"^1.1.0","mocha":"*","should":"*"},"keywords":["array","filter","collection","util"],"gitHead":"f7923d9d9d6a40c3ef2f01a8023a3f5916566879","_id":"arr-filter@1.1.0","_shasum":"3fc841ac31213c0d9814eb8b29a02f31a72c44db","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3fc841ac31213c0d9814eb8b29a02f31a72c44db","size":2395,"noattachment":false,"key":"/arr-filter/-/arr-filter-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arr-filter/download/arr-filter-1.1.0.tgz"},"directories":{},"publish_time":1424192295810,"_cnpm_publish_time":1424192295810,"_hasShrinkwrap":false},"1.0.2":{"name":"arr-filter","description":"Faster alternative to javascript's native filter method.","version":"1.0.2","homepage":"https://github.com/jonschlinkert/arr-filter","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arr-filter.git"},"bugs":{"url":"https://github.com/jonschlinkert/arr-filter/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/arr-filter/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"docs":"update && license && npmignore && deps && verb","all":"npm run docs"},"dependencies":{"make-iterator":"^0.1.0"},"devDependencies":{"array-filter":"^0.2.0","benchmarked":"^0.1.3","chalk":"^0.5.1","micromatch":"^1.0.1","minimist":"^1.1.0","mocha":"*","should":"*"},"keywords":["array","filter","collection","util"],"gitHead":"8851cc03ce1892dab7a96fad962a5a2b5c039ab8","_id":"arr-filter@1.0.2","_shasum":"4447b78f7e5cd7ba5e50d457f7361bccaa13af52","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"4447b78f7e5cd7ba5e50d457f7361bccaa13af52","size":36813,"noattachment":false,"key":"/arr-filter/-/arr-filter-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/arr-filter/download/arr-filter-1.0.2.tgz"},"directories":{},"publish_time":1421131532859,"_cnpm_publish_time":1421131532859,"_hasShrinkwrap":false},"1.0.1":{"name":"arr-filter","description":"Faster alternative to javascript's native filter method.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/arr-filter","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arr-filter.git"},"bugs":{"url":"https://github.com/jonschlinkert/arr-filter/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/arr-filter/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"docs":"update && license && npmignore && deps && verb","all":"npm run docs"},"dependencies":{"make-iterator":"^0.1.0"},"devDependencies":{"array-filter":"^0.2.0","benchmarked":"^0.1.3","chalk":"^0.5.1","micromatch":"^1.0.1","minimist":"^1.1.0","mocha":"*","should":"*"},"keywords":["array","filter","collection","util"],"gitHead":"2db0751983585b831d1519b8a6a146f15e21d127","_id":"arr-filter@1.0.1","_shasum":"890e1df12be1a98625a7bfbefe2bcde3c89739a9","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"890e1df12be1a98625a7bfbefe2bcde3c89739a9","size":36802,"noattachment":false,"key":"/arr-filter/-/arr-filter-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/arr-filter/download/arr-filter-1.0.1.tgz"},"directories":{},"publish_time":1421130241667,"_cnpm_publish_time":1421130241667,"_hasShrinkwrap":false},"1.0.0":{"name":"arr-filter","description":"Faster alternative to javascript's native filter method.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/arr-filter","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arr-filter.git"},"bugs":{"url":"https://github.com/jonschlinkert/arr-filter/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/arr-filter/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"docs":"update && license && npmignore && deps && verb","all":"npm run docs"},"dependencies":{"make-iterator":"^0.1.0"},"devDependencies":{"array-filter":"^0.2.0","benchmarked":"^0.1.3","chalk":"^0.5.1","micromatch":"^1.0.1","minimist":"^1.1.0","mocha":"*","should":"*"},"keywords":["array","filter","collection","util"],"gitHead":"2db0751983585b831d1519b8a6a146f15e21d127","_id":"arr-filter@1.0.0","_shasum":"b3f214cb24073f75e6654df0e737a0162f05884c","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b3f214cb24073f75e6654df0e737a0162f05884c","size":36801,"noattachment":false,"key":"/arr-filter/-/arr-filter-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arr-filter/download/arr-filter-1.0.0.tgz"},"directories":{},"publish_time":1420383318683,"_cnpm_publish_time":1420383318683,"_hasShrinkwrap":false},"0.1.0":{"name":"arr-filter","description":"Faster alternative to javascript's native filter method and [array-filter](https://github.com/juliangruber/array-filter).","version":"0.1.0","homepage":"https://github.com/jonschlinkert/arr-filter","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arr-filter.git"},"bugs":{"url":"https://github.com/jonschlinkert/arr-filter/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/arr-filter/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"keywords":["arr","array","filter","javascript","method","util","utility","utils"],"dependencies":{"make-iterator":"^0.1.0"},"_id":"arr-filter@0.1.0","_shasum":"180064e4baf29ff892a3c45750f841730b9cf290","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"180064e4baf29ff892a3c45750f841730b9cf290","size":3557,"noattachment":false,"key":"/arr-filter/-/arr-filter-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arr-filter/download/arr-filter-0.1.0.tgz"},"directories":{},"publish_time":1412206783912,"_cnpm_publish_time":1412206783912,"_hasShrinkwrap":false}},"readme":"# arr-filter [![NPM version](https://img.shields.io/npm/v/arr-filter.svg?style=flat)](https://www.npmjs.com/package/arr-filter) [![NPM monthly downloads](https://img.shields.io/npm/dm/arr-filter.svg?style=flat)](https://npmjs.org/package/arr-filter)  [![NPM total downloads](https://img.shields.io/npm/dt/arr-filter.svg?style=flat)](https://npmjs.org/package/arr-filter) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/arr-filter.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/arr-filter)\n\n> Faster alternative to javascript's native filter method.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save arr-filter\n```\n\n## Usage\n\n```js\nvar filter = require('arr-filter');\n\nfilter(['a', {a: 'b'}, 1, 'b', 2, {c: 'd'}, 'c'], function (ele) {\n  return typeof ele === 'string';\n});\n//=> ['a', 'b', 'c']\n```\n\n## Why another array filter?\n\n[array-filter](https://github.com/juliangruber/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](http://jsperf.com/array-filter-while-vs-for/2). The functions used in the benchmarks are the top performers from a dozen or so other functions.\n\n## About\n\n### Related projects\n\n* [arr-map](https://www.npmjs.com/package/arr-map): Faster, node.js focused alternative to JavaScript's native array map. | [homepage](https://github.com/jonschlinkert/arr-map \"Faster, node.js focused alternative to JavaScript's native array map.\")\n* [array-each](https://www.npmjs.com/package/array-each): Loop over each item in an array and call the given function on every element. | [homepage](https://github.com/jonschlinkert/array-each \"Loop over each item in an array and call the given function on every element.\")\n* [collection-map](https://www.npmjs.com/package/collection-map): Returns an array of mapped values from an array or object. | [homepage](https://github.com/jonschlinkert/collection-map \"Returns an array of mapped values from an array or object.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning 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:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 26, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/arr-filter","bugs":{"url":"https://github.com/jonschlinkert/arr-filter/issues"},"license":"MIT"}