{"_id":"foreach","_rev":"4056393","name":"foreach","description":"foreach component + npm package","dist-tags":{"latest":"2.0.6"},"maintainers":[{"name":"manuelstofer","email":"manuel@takimata.ch"}],"time":{"modified":"2025-09-24T04:10:12.000Z","created":"2013-03-21T18:40:00.553Z","2.0.6":"2022-05-11T13:27:59.497Z","2.0.5":"2014-09-22T06:29:58.002Z","2.0.4":"2013-08-19T16:47:17.152Z","2.0.3":"2013-04-14T12:44:31.702Z","2.0.2":"2013-04-12T22:17:04.288Z","2.0.1":"2013-04-07T11:57:39.568Z","2.0.0":"2013-03-22T09:32:36.988Z","1.3.3":"2013-03-21T18:40:00.553Z"},"users":{"ljharb":true,"andrezsanchez":true,"mightyiam":true,"shekharreddy":true,"codeinpixel":true},"author":{"name":"Manuel Stofer","email":"manuelstofer@gmail.com"},"repository":{"type":"git","url":"git://github.com/manuelstofer/foreach.git"},"versions":{"2.0.6":{"name":"foreach","description":"foreach component + npm package","version":"2.0.6","author":{"name":"Manuel Stofer","email":"manuelstofer@gmail.com"},"contributors":[{"name":"Manuel Stofer"},{"name":"Jordan Harband","url":"https://github.com/ljharb"}],"license":"MIT","main":"index.js","scripts":{"test":"node test.js","coverage":"covert test.js","coverage-quiet":"covert --quiet test.js"},"repository":{"type":"git","url":"git://github.com/manuelstofer/foreach.git"},"keywords":["shim","Array.prototype.forEach","forEach","Array#forEach","each"],"dependencies":{},"devDependencies":{"tape":"*","covert":"*"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0","firefox/15.0..latest","firefox/nightly","chrome/4.0","chrome/22.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/5.0.5..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"gitHead":"644640c4c84abc415140b00c3629084e982f2182","bugs":{"url":"https://github.com/manuelstofer/foreach/issues"},"homepage":"https://github.com/manuelstofer/foreach#readme","_id":"foreach@2.0.6","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"shasum":"87bcc8a1a0e74000ff2bf9802110708cfb02eb6e","size":2841,"noattachment":false,"key":"/foreach/-/foreach-2.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/foreach/download/foreach-2.0.6.tgz"},"_npmUser":{"name":"manuelstofer","email":"manuelstofer@gmail.com"},"directories":{},"maintainers":[{"name":"manuelstofer","email":"manuel@takimata.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/foreach_2.0.6_1652275679315_0.696165583763046"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-11T15:09:27.173Z","publish_time":1652275679497,"_cnpm_publish_time":1652275679497},"2.0.5":{"name":"foreach","description":"foreach component + npm package","version":"2.0.5","author":{"name":"Manuel Stofer","email":"manuel@takimata.ch"},"contributors":[{"name":"Manuel Stofer"},{"name":"Jordan Harband","url":"https://github.com/ljharb"}],"license":"MIT","main":"index.js","scripts":{"test":"node test.js","coverage":"covert test.js","coverage-quiet":"covert --quiet test.js"},"repository":{"type":"git","url":"git://github.com/manuelstofer/foreach"},"keywords":["shim","Array.prototype.forEach","forEach","Array#forEach","each"],"dependencies":{},"devDependencies":{"tape":"*","covert":"*"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0","firefox/15.0..latest","firefox/nightly","chrome/4.0","chrome/22.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/5.0.5..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"bugs":{"url":"https://github.com/manuelstofer/foreach/issues"},"homepage":"https://github.com/manuelstofer/foreach","_id":"foreach@2.0.5","_shasum":"0bee005018aeb260d0a3af3ae658dd0136ec1b99","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"manuelstofer","email":"manuel@takimata.ch"},"maintainers":[{"name":"manuelstofer","email":"manuel@takimata.ch"}],"dist":{"shasum":"0bee005018aeb260d0a3af3ae658dd0136ec1b99","size":2874,"noattachment":false,"key":"/foreach/-/foreach-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/foreach/download/foreach-2.0.5.tgz"},"directories":{},"publish_time":1411367398002,"_cnpm_publish_time":1411367398002,"_hasShrinkwrap":false},"2.0.4":{"name":"foreach","description":"foreach component + npm package","version":"2.0.4","author":{"name":"Manuel Stofer","email":"manuel@takimata.ch"},"contributors":[{"name":"Manuel Stofer"},{"name":"Jordan Harband","url":"https://github.com/ljharb"}],"license":"MIT","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/manuelstofer/foreach"},"keywords":["shim","Array.prototype.forEach","forEach","Array#forEach","each"],"dependencies":{},"devDependencies":{"tape":"*"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0","firefox/15.0..latest","firefox/nightly","chrome/4.0","chrome/22.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/5.0.5..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"readmeFilename":"Readme.md","_id":"foreach@2.0.4","dist":{"shasum":"cc5d0d8ae1d46cc9a555c2682f910977859935df","size":6883,"noattachment":false,"key":"/foreach/-/foreach-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/foreach/download/foreach-2.0.4.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"manuelstofer","email":"manuel@takimata.ch"},"maintainers":[{"name":"manuelstofer","email":"manuel@takimata.ch"}],"directories":{},"publish_time":1376930837152,"_cnpm_publish_time":1376930837152,"_hasShrinkwrap":false},"2.0.3":{"name":"foreach","description":"foreach component + npm package","version":"2.0.3","author":{"name":"Manuel Stofer","email":"manuel@takimata.ch"},"license":"MIT","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/manuelstofer/foreach"},"keywords":["shim","Array.prototype.forEach","forEach","Array#forEach","each"],"dependencies":{},"devDependencies":{"tape":"*"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0","firefox/15.0..latest","firefox/nightly","chrome/4.0","chrome/22.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/5.0.5..latest","ipad/6.0..latest","iphone/6.0..latest"]},"readmeFilename":"Readme.md","_id":"foreach@2.0.3","dist":{"shasum":"3085ef139c560594b4c78d7cafd53710d9536e03","size":6620,"noattachment":false,"key":"/foreach/-/foreach-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/foreach/download/foreach-2.0.3.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"manuelstofer","email":"manuel@takimata.ch"},"maintainers":[{"name":"manuelstofer","email":"manuel@takimata.ch"}],"directories":{},"publish_time":1365943471702,"_cnpm_publish_time":1365943471702,"_hasShrinkwrap":false},"2.0.2":{"name":"foreach","description":"foreach component + npm package","version":"2.0.2","author":{"name":"Manuel Stofer","email":"manuel@takimata.ch"},"license":"MIT","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/manuelstofer/foreach"},"keywords":["shim","Array.prototype.forEach","forEach","Array#forEach","each"],"dependencies":{},"devDependencies":{"tape":"*"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0","firefox/15.0..latest","firefox/nightly","chrome/4.0","chrome/22.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/5.0.5..latest","ipad/6.0..latest","iphone/6.0..latest"]},"readmeFilename":"Readme.md","_id":"foreach@2.0.2","dist":{"shasum":"11f9643de13bf5b6fa71779f7313c4f932329c17","size":6865,"noattachment":false,"key":"/foreach/-/foreach-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/foreach/download/foreach-2.0.2.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"manuelstofer","email":"manuel@takimata.ch"},"maintainers":[{"name":"manuelstofer","email":"manuel@takimata.ch"}],"directories":{},"publish_time":1365805024288,"_cnpm_publish_time":1365805024288,"_hasShrinkwrap":false},"2.0.1":{"name":"foreach","description":"foreach component + npm package","version":"2.0.1","author":{"name":"Manuel Stofer","email":"manuel@takimata.ch"},"license":"MIT","repository":{"type":"git","url":"git://github.com/manuelstofer/foreach"},"keywords":["shim","Array.prototype.forEach","forEach","Array#forEach","each"],"dependencies":{},"devDependencies":{},"readmeFilename":"Readme.md","_id":"foreach@2.0.1","dist":{"shasum":"b2012840c53ff141808bf5cf9428cb1d76c7b96b","size":4968,"noattachment":false,"key":"/foreach/-/foreach-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/foreach/download/foreach-2.0.1.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"manuelstofer","email":"manuel@takimata.ch"},"maintainers":[{"name":"manuelstofer","email":"manuel@takimata.ch"}],"directories":{},"publish_time":1365335859568,"_cnpm_publish_time":1365335859568,"_hasShrinkwrap":false},"2.0.0":{"name":"foreach","description":"foreach component + npm package","version":"2.0.0","author":{"name":"Manuel Stofer","email":"manuel@takimata.ch"},"license":"MIT","_id":"foreach@2.0.0","dist":{"shasum":"7c291920158391f6fd9520ce5deb3ebff6706dbf","size":4843,"noattachment":false,"key":"/foreach/-/foreach-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/foreach/download/foreach-2.0.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"manuelstofer","email":"manuel@takimata.ch"},"maintainers":[{"name":"manuelstofer","email":"manuel@takimata.ch"}],"directories":{},"publish_time":1363944756988,"_cnpm_publish_time":1363944756988,"_hasShrinkwrap":false},"1.3.3":{"name":"foreach","description":"Underscore's each function packed as a component","version":"1.3.3","author":{"name":"Manuel Stofer","email":"manuel@takimata.ch"},"license":"MIT","readmeFilename":"Readme.md","_id":"foreach@1.3.3","dist":{"shasum":"e62a2e940fc9e4aef2e15e8a3e5490e1acbcdf2b","size":4469,"noattachment":false,"key":"/foreach/-/foreach-1.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/foreach/download/foreach-1.3.3.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"manuelstofer","email":"manuel@takimata.ch"},"maintainers":[{"name":"manuelstofer","email":"manuel@takimata.ch"}],"directories":{},"publish_time":1363891200553,"_cnpm_publish_time":1363891200553,"_hasShrinkwrap":false}},"readme":"\n# foreach\n\n[![CDNJS](https://img.shields.io/cdnjs/v/foreach.svg)](https://cdnjs.com/libraries/foreach)\n\nIterate over the key value pairs of either an array-like object or a dictionary like object.\n\n[![browser support][1]][2]\n\n## API\n\n### foreach(object, function, [context])\n\n```js\nvar each = require('foreach');\n\neach([1,2,3], function (value, key, array) {\n    // value === 1, 2, 3\n    // key === 0, 1, 2\n    // array === [1, 2, 3]\n});\n\neach({0:1,1:2,2:3}, function (value, key, object) {\n    // value === 1, 2, 3\n    // key === 0, 1, 2\n    // object === {0:1,1:2,2:3}\n});\n```\n\n[1]: https://ci.testling.com/manuelstofer/foreach.png\n[2]: https://ci.testling.com/manuelstofer/foreach\n\n","_attachments":{},"homepage":"https://github.com/manuelstofer/foreach#readme","bugs":{"url":"https://github.com/manuelstofer/foreach/issues"},"license":"MIT"}