{"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"]},"_id":"foreach@2.0.4","dist":{"shasum":"cc5d0d8ae1d46cc9a555c2682f910977859935df","tarball":"http://registry-npm.ywwl.com/foreach/download/foreach-2.0.4.tgz","integrity":"sha512-ws+/c3GlxZuY04jxQ2IWFIpkhMdhXQkXMX5wbBw2ZMR3ruSoMTgqEDT1asVOgqM9JnupL9uuTGnYSpXKyx6U+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkRkeHr+4BiqNbGj3qDGyqFAIvRO3yee6dbVURjv/Y7AIgRmSzIqWuA2JfL8lPajSlHLV7ZD8cJzhzxvrRWQsTVFI="}],"size":6883,"noattachment":false,"key":"/foreach/-/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":{},"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","publish_time":1376930837152,"_cnpm_publish_time":1376930837152,"dist-tags":{"latest":"2.0.6"}}