{"_id":"@arr/filter.mutate","_rev":"319411","name":"@arr/filter.mutate","description":"Fastest Array.filter alternative --- mutates original array!","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"time":{"modified":"2021-06-03T20:13:05.000Z","created":"2017-07-13T01:47:51.656Z","1.0.2":"2019-10-23T17:57:42.926Z","1.0.1":"2019-10-23T11:58:42.615Z","1.0.0":"2017-07-13T01:51:58.331Z","0.2.0":"2017-07-13T01:47:51.656Z"},"users":{},"author":{"name":"Luke Edwards","email":"luke.edwards05@gmail.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"versions":{"1.0.2":{"name":"@arr/filter.mutate","version":"1.0.2","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"Fastest Array.filter alternative --- mutates original array!","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","mutator","mutate","native","filter"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/filter.mutate@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"e9f88e30b8291fcf573b06afc3df5990479de92a","size":1173,"noattachment":false,"key":"/@arr/filter.mutate/-/@arr/filter.mutate-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/filter.mutate/download/@arr/filter.mutate-1.0.2.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filter.mutate_1.0.2_1571853462772_0.355446012208519"},"_hasShrinkwrap":false,"publish_time":1571853462926,"_cnpm_publish_time":1571853462926},"1.0.1":{"name":"@arr/filter.mutate","version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"Fastest Array.filter alternative --- mutates original array!","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","mutator","mutate","native","filter"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/filter.mutate@1.0.1","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"shasum":"9cbdfc13ca12c8dfced70f9b4aa5fc68bf0fa8cf","size":1136,"noattachment":false,"key":"/@arr/filter.mutate/-/@arr/filter.mutate-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/filter.mutate/download/@arr/filter.mutate-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.mutate_1.0.1_1571831922513_0.3777211681957644"},"_hasShrinkwrap":false,"publish_time":1571831922615,"_cnpm_publish_time":1571831922615},"1.0.0":{"name":"@arr/filter.mutate","version":"1.0.0","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"Fastest Array.filter alternative --- mutates original array!","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","mutator","mutate","native","filter"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/filter.mutate@1.0.0","_shasum":"58188164977fd1af07f04f865c36d9271943cd4d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"58188164977fd1af07f04f865c36d9271943cd4d","size":1112,"noattachment":false,"key":"/@arr/filter.mutate/-/@arr/filter.mutate-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/filter.mutate/download/@arr/filter.mutate-1.0.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filter.mutate-1.0.0.tgz_1499910718120_0.2818572090473026"},"directories":{},"publish_time":1499910718331,"_hasShrinkwrap":false,"_cnpm_publish_time":1499910718331},"0.2.0":{"name":"@arr/filter.mutate","version":"0.2.0","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"Fastest Array.filter alternative --- mutates original array!","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","mutator","mutate","native","filter"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/filter.mutate@0.2.0","_shasum":"6a6697c4a2429189bf326b8f6ad58d545715410b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"6a6697c4a2429189bf326b8f6ad58d545715410b","size":1111,"noattachment":false,"key":"/@arr/filter.mutate/-/@arr/filter.mutate-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/filter.mutate/download/@arr/filter.mutate-0.2.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filter.mutate-0.2.0.tgz_1499910471568_0.10887143178842962"},"directories":{},"publish_time":1499910471656,"_hasShrinkwrap":false,"_cnpm_publish_time":1499910471656}},"readme":"# @arr/filter.mutate\n\n> Fastest `Array.filter` alternative --- mutates original array!\n\n:exclamation: Unlike native, `@arr/filter.mutate` **mutates** the original array! Use [`@arr/filter`](/packages/filter) for a non-mutating version.\n\n## Install\n\n```\n$ npm install --save @arr/filter.mutate\n```\n\n## Usage\n\n```js\nimport filter from '@arr/filter.mutate';\n\nconst words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];\n\nfilter(words, str => str.length > 6);\n//=> ['exuberant', 'destruction', 'present']\n\nconsole.log(words);\n//=> ['exuberant', 'destruction', 'present']\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.mutate` was called upon.\n\n\n## License\n\nMIT © [Luke Edwards](http://lukeed.com)\n","_attachments":{},"homepage":"https://github.com/lukeed/arr#readme","bugs":{"url":"https://github.com/lukeed/arr/issues"},"license":"MIT"}