{"name":"@arr/filter","version":"0.2.0","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.filter","module":"module.js","main":"index.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke.edwards05@gmail.com","url":"lukeed.com"},"engines":{"node":">=4"},"scripts":{"bench":"node bench","test":"tape test/*.js | tap-spec"},"files":["*.js"],"keywords":["arr","array","Array.filter","Array.prototype.filter","performance","native","filter"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/filter@0.2.0","_shasum":"7d7b18f0b8c6ec9f7364d54dbbabd44225f8fe39","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"7d7b18f0b8c6ec9f7364d54dbbabd44225f8fe39","tarball":"http://registry-npm.ywwl.com/@arr/filter/download/@arr/filter-0.2.0.tgz","integrity":"sha512-5ial5DdpRl8/ADVzwFaK8eJz3FoEgNzNJb9nvQcehLKMsbKMBszIhjT8F9PXjeGdRBnZj1WQ68xqS/+pOvL3Tw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWA6xl/q0rfhbPuMrqpfNyfIDX7IefxC2PpwpjKFcBFAiAHocAsxqVipLmLtFiWm41oSNb4dpsxfYdH3uPg7fzIag=="}],"size":1155,"noattachment":false,"key":"/@arr/filter/-/@arr/filter-0.2.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filter-0.2.0.tgz_1499910471457_0.8329762113280594"},"directories":{},"readme":"# @arr/filter\n\n> A tiny, faster alternative to native `Array.prototype.filter`\n\n:warning: Unlike native, `@arr/filter` does _not_ support the optional `thisArg` parameter!\n\nIf you are okay with mutating the original, check out [`@arr/filter.mutate`](/packages/filter.mutate) for an **extremely fast** `filter` alternative!\n\n## Install\n\n```\n$ npm install --save @arr/filter\n```\n\n## Usage\n\n```js\nimport filter from '@arr/filter';\n\nconst words = ['foo', 'bar', 'baz', 'foobar', 'hello', 'world'];\n\nfilter(words, str => str.length > 3);\n//=> ['foobar', 'hello', 'world']\n\nconsole.log(words);\n//=> ['foo', 'bar', 'baz', 'foobar', 'hello', 'world']\n```\n\n## API\n\n### filter(arr, callback)\n\n#### arr\nType: `Array`<br>\nThe array to iterate upon.\n\n#### callback(value[, index, array])\nType: `Function`<br>\nFunction to test for each element, taking three arguments:\n\n* **value** (required) -- The current element being processed in the array.\n* **index** (optional) -- The index of the current element being processed in the array.\n* **array** (optional) -- The array `filter` was called upon.\n\n\n## License\n\nMIT © [Luke Edwards](http://lukeed.com)\n","publish_time":1499910471662,"_cnpm_publish_time":1499910471662,"dist-tags":{"latest":"1.0.2"}}