{"_id":"@amphibian/iterate-down-array","_rev":"7-8201024689517499f1e820945d6834da","name":"@amphibian/iterate-down-array","description":"while loop abstraction for looping through indices from Array.length to 0","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@amphibian/iterate-down-array","version":"1.0.1","description":"while loop abstraction for looping through indices from Array.length to 0","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/iterate-down-array.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/iterate-down-array/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/iterate-down-array#README","dependencies":{"@amphibian/iterate-down":"^2.0.0"},"gitHead":"f4459d9f5a231d1e8f6c54292abc425212877ae4","_id":"@amphibian/iterate-down-array@1.0.1","_shasum":"620cc525d5e37c513c2a03eb5b132be5c46d9dee","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.0","_npmUser":{"name":"amphibian","email":"t@hom.as"},"dist":{"shasum":"620cc525d5e37c513c2a03eb5b132be5c46d9dee","tarball":"https://registry.npmjs.org/@amphibian/iterate-down-array/-/iterate-down-array-1.0.1.tgz","integrity":"sha512-g16XB+0CtH7BdkBNMt8yJI0hOlNlpoGUC/DIJMgZy92qG5umsK/P1XnUt/WQKpgTyk9K3GqD9sOfSUktg+Z4aQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/G7rR4w9YZ1vdMqT9E5/GFRv4dIkE2joSx/EXm3L8KwIhAMmsqBeYd7/pyjN4WntymIH9Zs6xnZy6Qdkej1xOR9sn"}]},"maintainers":[{"name":"amphibian","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/iterate-down-array-1.0.1.tgz_1476394070297_0.1832605565432459"},"directories":{}},"1.0.2":{"name":"@amphibian/iterate-down-array","version":"1.0.2","description":"while loop abstraction for looping through indices from Array.length to 0","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/iterate-down-array.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/iterate-down-array/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/iterate-down-array#README","dependencies":{"@amphibian/iterate-down":"^2.0.2"},"_id":"@amphibian/iterate-down-array@1.0.2","_shasum":"43b862cc9a7159fe18574e7e797f064e9ff91987","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"amphibian","email":"t@hom.as"},"dist":{"shasum":"43b862cc9a7159fe18574e7e797f064e9ff91987","tarball":"https://registry.npmjs.org/@amphibian/iterate-down-array/-/iterate-down-array-1.0.2.tgz","integrity":"sha512-UGUsI/BkscvPhEDj+t0qbL3xDAsuv8GnjiDUhpSJMqhQtnlebroSXU94ynn5xa43xpwvW87R862ntHwCSJPmkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWWghmI5ie/GMWlu88mw4anR6ScAazxUbBFrbx+m1gvgIgUVqHuaVrebd3KT3F4GT56z5hqZphs9dn5zxgUv+bFW0="}]},"maintainers":[{"name":"amphibian","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/iterate-down-array-1.0.2.tgz_1481728775878_0.13924197130836546"},"directories":{}}},"readme":"# iterate-down-array\n\n[![build status](https://gitlab.com/thomaslindstr_m/iterate-down-array/badges/master/build.svg)](https://gitlab.com/thomaslindstr_m/iterate-down-array/commits/master)\n\nwhile loop abstraction for looping through indices from Array.length to 0\n\n```\nnpm install @amphibian/iterate-down-array\n```\n\n```javascript\nvar iterateDownArray = require('@amphibian/iterate-down');\nvar array = ['zero', 'one', 'two'];\n\n// Iterate from the last index to the first\niterateDownArray(array, function (index, i) {\n    console.log(index, i); // two 2, one 1, zero 0\n});\n\n// Iterate from the last index to the first, but stop if the key is `one`\nvar question = iterateDownArray(array, function (index, i, end) {\n    console.log(index, i); // two 2, 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.170Z","created":"2016-10-13T21:27:52.035Z","1.0.1":"2016-10-13T21:27:52.035Z","1.0.2":"2016-12-14T15:19:37.819Z"},"homepage":"https://gitlab.com/thomaslindstr_m/iterate-down-array#README","repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/iterate-down-array.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"bugs":{"url":"https://gitlab.com/thomaslindstr_m/iterate-down-array/issues"},"license":"ISC","readmeFilename":"README.md"}