{"name":"@arr/filter","version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.filter","types":"module.d.ts","module":"module.js","main":"index.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke.edwards05@gmail.com","url":"https://lukeed.com"},"engines":{"node":">=4"},"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.1","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-GyqW3cPIMfoQYb51wJ3cggfeBH1wZxd179c59BVtIZdAQSyPfqDLbAFEnY1qqKXyVORSSTXTCbSjEqTldqs8NQ==","shasum":"9b57d9e9a4a12254752d455d774fc23432a49238","tarball":"http://registry-npm.ywwl.com/@arr/filter/download/@arr/filter-1.0.1.tgz","fileCount":5,"unpackedSize":2169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsEByCRA9TVsSAnZWagAAJNgP/3C7CobC+RiDQYexJ6AS\nqS7ML8ANjiuOaz73F4YCWxx38PkmMo+SQrf8HS1xfQessPAAuXBVKxNz2IS9\nWQpasSzpNh4SsBLadub1FSy2YwKNpO80ABNf5OJakyJbe+JVhfCZtz89BFGE\npt45q72T0wv4DMXJf7bJYNqERKWxcUm3zDao4+qGKSRkvrK+eGefXRNC6n80\n2T5A1In2+YcGOJevOFs1pYIkP6S8vpHEeWU8Rgh8vjjj1PrxKw2dc3NUS2GG\nwy2IEczDEB1e+OJZEM/TH1gafI8sIEzRRp8ElMYgJUyjRSRnkCzyCEHCWoXp\nCSAChCBve2Mtia38eq1ItUbraSQjIbLFeSnZGQA8V1b7l+oNIiM44DicU50N\nY0JmUWaM7HQ8iyjo5iR/Qc5LDJLwDX8sqG+cjxaMc5oKpBUm06nmH/y8XJiH\nwiYzk06VUQv0JqbvkXq2N/uqJ/zylV3FuDyzr9mh6umtC4H58XgLFO/hTP4O\nQrKEKD824CCiMSFd/UJWeiIo6MNuTQFUwnoxExXobcKRD07laXpuF4BQo7Z7\n9SWtOfVHHRHFKexBbnVI2txdsu3quJdU/gosKypez4yJTdgBHIXbhRaV3Meo\n6n7cpg0eiFQik1motVH1fcwo07957vwFukBfRfScOfWhej5HH/pC4ntkMbpZ\n4MLz\r\n=hILS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHv3GTTADLORt5unr795UPSOcxaPwH+HgaP4jrvQOPVBAiEAk5omDzOQ+TBKjbXXDmWlV0vx+q9KqVDjRqizz+Wp9HU="}],"size":1185,"noattachment":false,"key":"/@arr/filter/-/@arr/filter-1.0.1.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filter_1.0.1_1571831922523_0.3526021612910084"},"_hasShrinkwrap":false,"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":1571831922641,"_cnpm_publish_time":1571831922641,"dist-tags":{"latest":"1.0.2"}}