{"_id":"@amphibian/iterate-up-array","_rev":"7-89e69e8b6e70475b94e8afc900222fa1","name":"@amphibian/iterate-up-array","description":"while loop abstraction for looping through indices from 0 to Array.length","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@amphibian/iterate-up-array","version":"1.0.0","description":"while loop abstraction for looping through indices from 0 to Array.length","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/iterate-up-array.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/iterate-up-array/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/iterate-up-array#README","dependencies":{"@amphibian/iterate-up":"^2.0.0"},"gitHead":"a3eaa843c8b9ecff57d0f46071c67b18e7481ff2","_id":"@amphibian/iterate-up-array@1.0.0","_shasum":"33f87b47efa6abc3ef0893d8a5f3e4f6583d6760","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.0","_npmUser":{"name":"amphibian","email":"t@hom.as"},"dist":{"shasum":"33f87b47efa6abc3ef0893d8a5f3e4f6583d6760","tarball":"https://registry.npmjs.org/@amphibian/iterate-up-array/-/iterate-up-array-1.0.0.tgz","integrity":"sha512-q0X3qtzKPqLTcM1yfcJLOdsRN9/plJPMUYMx8rnd4OP//yi2VJCocQ9uKO+dSpodQ6OZhDrNuLWjSfa6oxtx6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKo1XD5tY0oSOcdAfL5BmwSQW+RvycRzoElh1CXLb5lwIgKbLE11R8qiEubkzH0L8/19Z2L4uHFOc7sNMni8viaqA="}]},"maintainers":[{"name":"amphibian","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/iterate-up-array-1.0.0.tgz_1476394135895_0.5958596158307046"},"directories":{}},"1.0.1":{"name":"@amphibian/iterate-up-array","version":"1.0.1","description":"while loop abstraction for looping through indices from 0 to Array.length","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/iterate-up-array.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/iterate-up-array/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/iterate-up-array#README","dependencies":{"@amphibian/iterate-up":"^2.0.2"},"_id":"@amphibian/iterate-up-array@1.0.1","_shasum":"82d47c1c01b4a878103a39615c3ba2f9aaf98637","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"amphibian","email":"t@hom.as"},"dist":{"shasum":"82d47c1c01b4a878103a39615c3ba2f9aaf98637","tarball":"https://registry.npmjs.org/@amphibian/iterate-up-array/-/iterate-up-array-1.0.1.tgz","integrity":"sha512-zmtoQUTaVot6eNV+IzG9W3kATGO6I1jDNZDXoOcKfHCROE1KcL2svETr4qCfqM+5AuMOwYxWofx9qmtSzTRG7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4+yuVpiKRJUHoVQVnITpUjNGDqL11ScikbLGD+PIi8AiAvrkfKeeScCWlpfqkCJMGIYVoQHUraXVePHqDA2m3DCA=="}]},"maintainers":[{"name":"amphibian","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/iterate-up-array-1.0.1.tgz_1481728844894_0.1597061944194138"},"directories":{}}},"readme":"# iterate-up-array\n\n[![build status](https://gitlab.com/thomaslindstr_m/iterate-up-array/badges/master/build.svg)](https://gitlab.com/thomaslindstr_m/iterate-up-array/commits/master)\n\nwhile loop abstraction for looping up through indices from 0 to Array.length\n\n```\nnpm install @amphibian/iterate-up-array\n```\n\n```javascript\nvar iterateUpArray = require('@amphibian/iterate-up-array');\nvar array = ['zero', 'one', 'two'];\n\n// Iterate from the first index to the last\niterateUpArray(array, function (index, i) {\n    console.log(index, i); // zero 0, one 1, two 2\n});\n\n// Iterate from the first index to the last, but stop if the key is `one`\nvar question = iterateUpArray(array, function (index, i, end) {\n    console.log(index, i); // zero 0, one 1\n\n    if (index === 'one') {\n        end('hola que hora es');\n    }\n});\n\nconsole.log(question); // > hola que hora es\n```\n","maintainers":[{"email":"t@hom.as","name":"thomaslindstr_m"}],"time":{"modified":"2022-06-12T14:39:51.501Z","created":"2016-10-13T21:28:56.886Z","1.0.0":"2016-10-13T21:28:56.886Z","1.0.1":"2016-12-14T15:20:46.785Z"},"homepage":"https://gitlab.com/thomaslindstr_m/iterate-up-array#README","repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/iterate-up-array.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"bugs":{"url":"https://gitlab.com/thomaslindstr_m/iterate-up-array/issues"},"license":"ISC","readmeFilename":"README.md"}