{"name":"@arr/filter","version":"1.0.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@1.0.0","_shasum":"3d70902de9b5424bb5d5ceec00fd05f3d635e50f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"3d70902de9b5424bb5d5ceec00fd05f3d635e50f","tarball":"http://registry-npm.ywwl.com/@arr/filter/download/@arr/filter-1.0.0.tgz","integrity":"sha512-KDX+UaJeN0gXIetObxZdAQZMkgQTVHSIl2a1oKigkOqN1oPXc7KiZpyM7F3QeQLc8wpndBFe5dQt/EVHTcH5Ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICL+NRPD3Z1Paa+s+MDkwU3MWK2LENjmCSYhWx01vhSJAiBwPiofoOsl3s80KAG/7ms9diC4qz4YOrH7oirbXzqftQ=="}],"size":1157,"noattachment":false,"key":"/@arr/filter/-/@arr/filter-1.0.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filter-1.0.0.tgz_1499910718061_0.03122761193662882"},"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":1499910718143,"_cnpm_publish_time":1499910718143,"dist-tags":{"latest":"1.0.2"}}