{"_id":"@arr/foreach","_rev":"319415","name":"@arr/foreach","description":"A tiny, faster alternative to native Array.prototype.forEach","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"time":{"modified":"2021-06-03T20:13:06.000Z","created":"2017-07-09T00:05:02.148Z","1.0.1":"2019-10-23T11:58:49.805Z","1.0.0":"2017-07-13T01:52:00.561Z","0.2.0":"2017-07-13T01:47:54.024Z","0.1.0":"2017-07-09T00:05:02.148Z"},"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.1":{"name":"@arr/foreach","version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.forEach","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.forEach","Array.prototype.forEach","performance","native","foreach"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/foreach@1.0.1","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"shasum":"b6856914751af88aab16b2d741345c877119aa36","size":1054,"noattachment":false,"key":"/@arr/foreach/-/@arr/foreach-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/foreach/download/@arr/foreach-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/foreach_1.0.1_1571831929668_0.4950097144323171"},"_hasShrinkwrap":false,"publish_time":1571831929805,"_cnpm_publish_time":1571831929805},"1.0.0":{"name":"@arr/foreach","version":"1.0.0","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.forEach","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.forEach","Array.prototype.forEach","performance","native","foreach"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/foreach@1.0.0","_shasum":"6bf4c9eaf948e5429b58a4dff9f15ce5de206d05","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"6bf4c9eaf948e5429b58a4dff9f15ce5de206d05","size":1033,"noattachment":false,"key":"/@arr/foreach/-/@arr/foreach-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/foreach/download/@arr/foreach-1.0.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/foreach-1.0.0.tgz_1499910720470_0.4655933422036469"},"directories":{},"publish_time":1499910720561,"_hasShrinkwrap":false,"_cnpm_publish_time":1499910720561},"0.2.0":{"name":"@arr/foreach","version":"0.2.0","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.forEach","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.forEach","Array.prototype.forEach","performance","native","foreach"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/foreach@0.2.0","_shasum":"16e967a13452869b6a95d1f50476d5cf04850c7c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"16e967a13452869b6a95d1f50476d5cf04850c7c","size":1034,"noattachment":false,"key":"/@arr/foreach/-/@arr/foreach-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/foreach/download/@arr/foreach-0.2.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/foreach-0.2.0.tgz_1499910473921_0.6885211048647761"},"directories":{},"publish_time":1499910474024,"_hasShrinkwrap":false,"_cnpm_publish_time":1499910474024},"0.1.0":{"name":"@arr/foreach","version":"0.1.0","repository":{"type":"git","url":"git+https://github.com/lukeed/arr.git"},"description":"A tiny, faster alternative to native Array.prototype.forEach","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.forEach","Array.prototype.forEach","performance","native","foreach"],"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/lukeed/arr/issues"},"homepage":"https://github.com/lukeed/arr#readme","_id":"@arr/foreach@0.1.0","_shasum":"d2af4f43e74291e8841a95a7fce52cae39b497af","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"dist":{"shasum":"d2af4f43e74291e8841a95a7fce52cae39b497af","size":596,"noattachment":false,"key":"/@arr/foreach/-/@arr/foreach-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@arr/foreach/download/@arr/foreach-0.1.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/foreach-0.1.0.tgz_1499558701884_0.7122735364828259"},"directories":{},"publish_time":1499558702148,"_hasShrinkwrap":false,"_cnpm_publish_time":1499558702148}},"readme":"# @arr/foreach\n\n> A tiny, faster alternative to native `Array.prototype.forEach`\n\n:warning: Unlike native, `@arr/foreach` does _not_ support the optional `thisArg` parameter!\n\n## Install\n\n```\n$ npm install --save @arr/foreach\n```\n\n## Usage\n\n```js\nimport forEach from '@arr/foreach';\n\nforEach(['a', 'b', 'c'], val => {\n  console.log(val);\n});\n//=> a\n//=> b\n//=> c\n```\n\n## API\n\n### forEach(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 `forEach` 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"}