{"_id":"array-iterate","_rev":"16-4625f000384021e90055a5c2dc28a276","name":"array-iterate","description":"`Array#forEach()` but it’s possible to define where to move to next","dist-tags":{"latest":"2.0.1"},"versions":{"0.0.1":{"name":"array-iterate","version":"0.0.1","description":"forEach with the possibility to change the next position","license":"MIT","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"https://github.com/wooorm/array-iterate.git"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"devDependencies":{"eslint":"^0.9.0","istanbul":"^0.3.0","jscs":"^1.0.0","mocha":"^2.0.0"},"scripts":{"test":"_mocha --reporter spec --check-leaks -u exports test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports test.js","coverage":"istanbul cover node_modules/.bin/_mocha -- -- test.js","lint":"npm run-script lint-api && npm run-script lint-test && npm run-script lint-style","lint-api":"eslint index.js","lint-test":"eslint test.js --env mocha","lint-style":"jscs index.js test.js --reporter=inline","make":"npm run-script lint && npm run-script coverage"},"gitHead":"228e8321787721c31f97fbb91279dbc20e7c9c99","bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"homepage":"https://github.com/wooorm/array-iterate","_id":"array-iterate@0.0.1","_shasum":"72915c2d6fdfe0615cf1c94996c10150f09bf792","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"dist":{"shasum":"72915c2d6fdfe0615cf1c94996c10150f09bf792","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-0.0.1.tgz","integrity":"sha512-dtW0SzVLny4j0ts1sDLy28FDlNtPD6fTeJt0ziMRDlF4VaTR93g6VZylSwWqNqJGm7aBkliBo8oqHekHSa5GmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmFf0QGE71Z32yW0giTSw0bPgrOBf8xrZsZGo3kKMRDwIhALu7n7rMsyJOfx5AeWniih2Z6FSvRRv8xeYW2zTTvIVq"}]},"directories":{}},"0.1.0":{"name":"array-iterate","version":"0.1.0","description":"forEach with the possibility to change the next position","license":"MIT","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"https://github.com/wooorm/array-iterate.git"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"devDependencies":{"eslint":"^0.10.0","istanbul":"^0.3.0","jscs":"^1.0.0","mocha":"^2.0.0"},"scripts":{"test":"_mocha --reporter spec --check-leaks -u exports test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports test.js","coverage":"istanbul cover node_modules/.bin/_mocha -- -- test.js","lint-api":"eslint index.js","lint-test":"eslint test.js --env mocha","lint-style":"jscs index.js test.js --reporter=inline","lint":"npm run lint-api && npm run lint-test && npm run lint-style","make":"npm run lint && npm run coverage"},"gitHead":"5d718b8f9d55e81b9cc5c942f39772cd472a4a17","bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"homepage":"https://github.com/wooorm/array-iterate","_id":"array-iterate@0.1.0","_shasum":"df308d9fc3940b886a3f4d053557fb5ca4d798d2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"dist":{"shasum":"df308d9fc3940b886a3f4d053557fb5ca4d798d2","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-0.1.0.tgz","integrity":"sha512-U/jpt8Oc+InmrR7P7PHyCeCwVwbMWX1iSDx6g0X7bHIrhC0lwPCbtPiohLEtZ9nRU/De432kZNfL9X0/oxH2qA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFKKnJ6cfUUDaYj3R/U55K/RBvqUoAZ5q93/ovDpSVzMAiEA2Fi1ZcyilFqVGN457ut6P87WO4E30K3ij/01pYz4Bw0="}]},"directories":{}},"1.0.0":{"name":"array-iterate","version":"1.0.0","description":"forEach with the possibility to change the next position","license":"MIT","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"git+https://github.com/wooorm/array-iterate.git"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"files":["index.js"],"devDependencies":{"browserify":"^11.0.0","eslint":"^1.0.0","esmangle":"^1.0.0","istanbul":"^0.3.0","jscs":"^2.0.0","jscs-jsdoc":"^1.0.0","mdast":"^1.0.0","mdast-comment-config":"^1.0.0","mdast-github":"^1.0.0","mdast-lint":"^1.0.0","mdast-slug":"^1.0.0","mdast-validate-links":"^1.0.0","mocha":"^2.0.0"},"scripts":{"test-api":"mocha --check-leaks test.js","test-coverage":"istanbul cover _mocha -- test.js","test-travis":"npm run test-coverage","test":"npm run test-api","lint-api":"eslint .","lint-style":"jscs --reporter inline .","lint":"npm run lint-api && npm run lint-style","make":"npm run lint && npm run test-coverage","bundle":"browserify index.js --no-builtins -s arrayIterate > array-iterate.js","postbundle":"esmangle array-iterate.js > array-iterate.min.js","build-md":"mdast . --quiet","build":"npm run bundle && npm run build-md"},"gitHead":"8a8d4d42e175db72c0fa206dfc191d13dfe63a60","bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"homepage":"https://github.com/wooorm/array-iterate#readme","_id":"array-iterate@1.0.0","_shasum":"67cf333391a0fda11bb38c2ec00a104cafdb2ce3","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"67cf333391a0fda11bb38c2ec00a104cafdb2ce3","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-1.0.0.tgz","integrity":"sha512-Zf0QeUZuk0dCpF+xy6QCXd+6xbWA25NSHIH2jutq/8qqDg8c2G0fKqDCJR61QFRE+vGuVyOT51xffNAkGlrUGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUi7aMNbMTaY80D+1UKHqyPeDtuYb/q18yECwAIu7iGAiA6DROhXrccrhLorjrdrBZBrjKmezqEyMhtdsw0cBOEWA=="}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{}},"1.1.0":{"name":"array-iterate","version":"1.1.0","description":"forEach with the possibility to change the next position","license":"MIT","keywords":["array","list","iterate","walk"],"dependencies":{"has":"^1.0.1"},"repository":{"type":"git","url":"git+https://github.com/wooorm/array-iterate.git"},"bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"engines":{"node":">=0.11.0"},"files":["index.js"],"devDependencies":{"browserify":"^13.0.0","esmangle":"^1.0.0","nyc":"^7.1.0","remark-cli":"^1.0.0","remark-comment-config":"^4.0.0","remark-github":"^5.0.0","remark-lint":"^4.0.0","remark-toc":"^3.0.0","remark-validate-links":"^4.0.0","tape":"^4.4.0","xo":"^0.16.0"},"scripts":{"build-md":"remark . --quiet --frail","build-bundle":"browserify index.js -s arrayIterate > array-iterate.js","build-mangle":"esmangle array-iterate.js > array-iterate.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"rules":{"guard-for-in":"off","max-lines":"off"},"ignores":["array-iterate.js","array-iterate.min.js"]},"remarkConfig":{"output":true,"plugins":{"comment-config":null,"lint":{"heading-increment":false,"no-duplicate-headings":false,"list-item-spacing":false},"github":null,"toc":{"tight":true,"maxDepth":3},"validate-links":null},"settings":{"bullet":"*"}},"gitHead":"97471f01e1e76c8604e870fd6cdac1d90383f824","homepage":"https://github.com/wooorm/array-iterate#readme","_id":"array-iterate@1.1.0","_shasum":"4f13148ffffa5f2756b50460e5eac8eed31a14e6","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"4f13148ffffa5f2756b50460e5eac8eed31a14e6","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.0.tgz","integrity":"sha512-bzwkQP66K2wjQ6t7jaIMr/QeDjcC1Le2yVu6g5MkHn1Wfu/R9Z9XD2KkwexDLTz6h9kvflUTWiR+UIxuGxKBng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHMF3Z//KO3wRWgBdHKrujDXhoE9VqjN2sAuq2KqsDRAAiA/gm6f8g97+iPgpPIUIfyRoGdKk6DxXiy49It7uWPeGA=="}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/array-iterate-1.1.0.tgz_1470649486601_0.29966444545425475"},"directories":{}},"1.1.1":{"name":"array-iterate","version":"1.1.1","description":"forEach with the possibility to change the next position","license":"MIT","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"git+https://github.com/wooorm/array-iterate.git"},"bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{},"devDependencies":{"browserify":"^14.0.0","esmangle":"^1.0.0","nyc":"^11.0.0","remark-cli":"^3.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.4.0","xo":"^0.18.0"},"scripts":{"build-md":"remark . -qfo","build-bundle":"browserify index.js -s arrayIterate > array-iterate.js","build-mangle":"esmangle array-iterate.js > array-iterate.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"esnext":false,"rules":{"guard-for-in":"off","unicorn/prefer-type-error":"off"},"ignores":["array-iterate.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"2c6be51dbc38c14c82741d4fdf08d39f8a0b1323","homepage":"https://github.com/wooorm/array-iterate#readme","_id":"array-iterate@1.1.1","_shasum":"865bf7f8af39d6b0982c60902914ac76bc0108f6","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"865bf7f8af39d6b0982c60902914ac76bc0108f6","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.1.tgz","integrity":"sha512-TvgqV7XQtppxl/g5cn8XN4edsGS8iRw9CZN4IHBEA6FXoJaI+9nHRduM3u9vOMmekWOYNBTwFzqsKZCButZTHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpX9en3Yozqc+igbrywmhXKLjGvPN6/bONn6H84o0ELQIgWQHbvhcqKQmHuLIb4Q9rG2juaOR5R5mW7ft/52rA6ks="}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-iterate-1.1.1.tgz_1497953006046_0.12903842725791037"},"directories":{}},"1.1.2":{"name":"array-iterate","version":"1.1.2","description":"forEach with the possibility to change the next position","license":"MIT","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"git+https://github.com/wooorm/array-iterate.git"},"bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","esmangle":"^1.0.0","nyc":"^11.0.0","prettier":"^1.12.0","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.4.0","xo":"^0.20.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify index.js -s arrayIterate > array-iterate.js","build-mangle":"esmangle array-iterate.js > array-iterate.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"no-var":"off","prefer-arrow-callback":"off","guard-for-in":"off","unicorn/prefer-type-error":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"gitHead":"add581e1d1c405a1b342b307839588a5702f6c9a","homepage":"https://github.com/wooorm/array-iterate#readme","_id":"array-iterate@1.1.2","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"integrity":"sha512-1hWSHTIlG/8wtYD+PPX5AOBtKWngpDFjrsrHgZpe+JdgNGz0udYu6ZIkAa/xuenIUEqFv7DvE2Yr60jxweJSrQ==","shasum":"f66a57e84426f8097f4197fbb6c051b8e5cdf7d8","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.2.tgz","fileCount":4,"unpackedSize":6121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa0eOfCRA9TVsSAnZWagAA0MAP/ix1oa7LZJ++amBPttXY\nBUKCZlOqzTdaPFjTpkGhNgQU/hWjBFQEXi18E8w1gomQsHHbsXeN1VZ729IE\nr5m8CD72DEo3yxYLvDBxgvmMVKqQBUTKy+80R/6nfz7X/1OAs7/zJOTNjB+m\nSOVWBxAQdmTj+TM7IGmwim3t5C8UYTNE3JXNY0tMhH46LXCpDsJeOAVXcrKq\nIWJklmRdSyjGmNHKPg+rKnL0JcdOzxxgLApZUgCEfFrPrzS2raqZDRunHES0\niVsInBCeDVdOcZRv3+rRrNn7yRfpBX7kJZXbtFG9S7oKrtQHC+ILcGZ1zZHY\ndggAs82u3gMfc7CQFmBQqE550lT/a9rp1BgXu+UD4SKXSDmWxuL5gMUX+WEk\nWKqskOkVb6eNpYmVaUvFkn5mpUEIW1pQGnkOxkORuk3qA0v8ZYJhJGU/D56L\nDg+DTZrgV9oSeQAyRePw1s81m6lGwSpORAPEe5ElMbu/foyYe2Icvcwu4QFL\notURMbN0aCar+PPoo8bFZXh0ICwVQ31y377z4IekVnQVdzpLWdljd7eUi0+d\nSD43+ykgedCEZGtg/0X3cpZXLvyNYQ3zmvJWFkqG6V6GIBR1Y3+rfD8iTGhl\nN7qnc6EIJMguNDligEPhz2m96IZLkdjLxan6Aem6FMe1V+bvIAE1KoG1glsY\n5ZN6\r\n=uuBW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsd5dSOz+A7MS1+zX69bq0P2u5lWKAypKLSE2IdJfJ8wIhAMl8UtXEpT8SOEkGkxaTxUizXeIuhenfjCdRtkCUcz3j"}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-iterate_1.1.2_1523704734477_0.2727673759563265"},"_hasShrinkwrap":false},"1.1.3":{"name":"array-iterate","version":"1.1.3","description":"forEach with the possibility to change the next position","license":"MIT","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"git+https://github.com/wooorm/array-iterate.git"},"bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^14.0.0","prettier":"^1.12.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.4.0","tinyify":"^2.5.0","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s arrayIterate -o array-iterate.js","build-mangle":"browserify . -s arrayIterate -p tinyify -o array-iterate.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/prefer-type-error":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"gitHead":"1f6ae05f2f2cb32db0be0a235acc506d5431650c","homepage":"https://github.com/wooorm/array-iterate#readme","_id":"array-iterate@1.1.3","_nodeVersion":"11.9.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-7MIv7HE9MuzfK6B2UnWv07oSHBLOaY1UUXAxZ07bIeRM+4IkPTlveMDs9MY//qvxPZPSvCn2XV4bmtQgSkVodg==","shasum":"b116bdb1e37f3c3fec13acdfb91ac829f122543c","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.3.tgz","fileCount":4,"unpackedSize":6342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0BDACRA9TVsSAnZWagAALV0P/RZSCPAC9Hq8Mp8gq2q1\nu96EcsfJtSceuNiwx/NJcOlBFvq92npTUz1j/2TuY6swa7z3iEMnkwPQ7M8M\nlcACamr6i2EFIzM21Kc1HwrRc3V67z7GQca2xfo92TmQJBes0EUy0BH17F6Y\nSZxFZR7VTFJvc+V8mx4AbUqD1mEk8Jrr+IkruLq1XZF/w+7ga1RQgz5I1dyb\neYXdbMUZMaJ85viJCfqDZG4li1HP078HQwWNRzmUCElNU7PgACpokBmmikWy\nJfL1EtCbqf9PnigwByjITm9jaKRto6L0HXPtmxw7iyy3tWW0hGr0ORfiYSlN\n94p16qHsZY2wW2BVaWyl1ftTZ68aXoyAkWCE5XOB09NF7kU3Xxy8YlxSPQer\ngI32RWBDEmJakDZ1QKR3rRxzDJ3OEjhtDERUgVXFiC8mSzlNIDvmGF4FC3pH\nKbYbbv26tfjAXUAwvjI64Trz/rE+Q+mTJ+S4TMXsIgZ8SM55IhmyzDZrELco\nLsxXx/SjXbik9DSA5gB+o/v7ZYag+yvmMmn6JkgsoYHbFGpQAYcVTScGfaDx\n63wRw0nVAUnSL2o8+a4b6A6Mi/EqKE9IbacjilJpnT4wLY0QGz/DJ0ykb+CP\npi7a3XBEe+t4XgVwmhfV1qmLNl8wSBi5xoIfNSCvT/CfHcOX1HvRttdUgieB\nsnNu\r\n=aX5U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVxO83tVt4HB1ODW55wiGbXOMZMf2SSCn9ZGZyp5PY1AIhAK6gGwLlO8X3vFg2v455QtZYugjPM+2nzd7JdeSBQD3g"}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-iterate_1.1.3_1557139648111_0.5900435425941435"},"_hasShrinkwrap":false},"1.1.4":{"name":"array-iterate","version":"1.1.4","description":"forEach with the possibility to change the next position","license":"MIT","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"git+https://github.com/wooorm/array-iterate.git"},"bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s arrayIterate -o array-iterate.js","build-mangle":"browserify . -s arrayIterate -p tinyify -o array-iterate.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/prefer-type-error":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"gitHead":"1e0468b08d00e3d4684edf33bbe4d3a981109f06","homepage":"https://github.com/wooorm/array-iterate#readme","_id":"array-iterate@1.1.4","_nodeVersion":"13.0.1","_npmVersion":"6.13.6","dist":{"integrity":"sha512-sNRaPGh9nnmdC8Zf+pT3UqP8rnWj5Hf9wiFGsX3wUQ2yVSIhO2ShFwCoceIPpB41QF6i2OEmrHmCo36xronCVA==","shasum":"add1522e9dd9749bb41152d08b845bd08d6af8b7","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.4.tgz","fileCount":4,"unpackedSize":6418,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeLaWjCRA9TVsSAnZWagAAtxgP/14gXH4dmcyq5GH4ihCH\n4wdqN6Ea160IuSWrCuHiECsFd230hHAsEiKuUlwMAiEQq3+Qa5sAXVPWtPaF\nuy1UTGv+K+dg/ClXjoTtTZozPn+inOGjJ+ZlzJU6A9zAiBnvgAPwbtTMVXGK\n6v4dOPrntCLL6pbXIkWmRt1YjXWPhqmTNofSChkQtVcMTCVjoMYcuTIEpR7n\nN37riuJNe5MZKU5o8b8sGrqmxrYxolnAZC1EdpPQbeZilGPZ51WgvUcSwFdP\nbG0/SYJ8/oPhYf9Rqi1eqoQXGg95PYydLtjtueIg+UzszyLvAUsbErD0jYi4\nfT5b7ngdBxsr4Wxi1nUGdE87Vf7XG7ft7fvMPsv0DiyyjSlMHmVdlSE66yzx\nLin5AU8UlL8nQCPXd3x26437NuRjZXJ+MGgToSO5y9pOYjkuZFnVz7ZPs5Nu\neBkQpwbwkoOsCLjPo0mFAOEZ0c8ElGQiP5oy7iyFuUniUe9YjjchPWdeseac\nDiBmOi1TlFJAMcEEGCJcqjb+pz4FC4zaCWxDpyh/3bCAIb9vhTLeq4hiEKt8\nU+P8uAPGFAETaHS+LafmZZn9TGfWheqiKRNbgQVQ/4itQyqribQggNGQLLcB\n3GPA/7W8lsADtnXqMLFNmmCDE87dV4e7TrsBcUrlbSJiMH+wUAxMIs1LQN6U\n4NLz\r\n=UjGW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgYImjQnr8lciGh5mXZs2ed9fWfC5nHPgrS4vS3SKs8AIgJXSYd/Lef4p6/ZNTSoLPPtgZnZdHB/XIchWR/D9Oiao="}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-iterate_1.1.4_1580049826564_0.7831374862225424"},"_hasShrinkwrap":false},"2.0.0":{"name":"array-iterate","version":"2.0.0","description":"forEach with the possibility to change the next position","license":"MIT","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"git+https://github.com/wooorm/array-iterate.git"},"bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","prebuild":"rimraf \"*.d.ts\"","build":"tsc","test-api":"node test","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"no-var":"off","prefer-arrow-callback":"off","unicorn/no-this-assignment":"off","unicorn/prefer-type-error":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"7a5f9412112333a92692544fa00d75ea6f39386e","homepage":"https://github.com/wooorm/array-iterate#readme","_id":"array-iterate@2.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.1","dist":{"integrity":"sha512-HNhAorCEY0NY/p+SMvcM0O2OTxZZItN0PT7pd2cXxpUlwPcQ/2ar4beOu0bS0Vkv7QRWcTfipECz/zhXUyArWg==","shasum":"901a2297f878c1d6ec5be4fea5e7ad16fa37c3e3","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-2.0.0.tgz","fileCount":5,"unpackedSize":8263,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgR1dqCRA9TVsSAnZWagAAybAP/1O53FTiP+iUYMKjHrSO\nZpQjgcRo3W8RuYsubJ5c94HZCWbl3fxQxpSRARB4GWe7/OKM/fFL4HTuNQ02\nIDBp3gHvZr1BAGoqIZPaqjFLZ7E6Wvwk7zLEMSp9k5936F7bTi3Ns1AU/CaC\neY7MAiVyj4OWG8Glu0XFdeybSfnbPsJDRiLA0+v+16HvDiYFLXBQsJoMCt3y\nEs7SF0aZ1HSpZZxqyBqCwjJzPgVytNPXpj0uTqscWLLZrnQJZtBnzHJdbxwV\nWKGeEMPxWfkWQUJFjYbn+hL86bkzb+rMRXV7ayDnXdk6MIJjqQyrQ1GqotVy\nQWO9mizzV4gLhM2JttEXRmI3nfZCix0ihuwat+GHdvX70J2EdUZZWZUszj0/\ncBpt4nhdsc/n68ZdP3havqvez0foH0HHuMjBYFzXm9saNWsnE2dPDM7zZDVx\nISpYicI1oexUJATSIIBUWhtUOyevFi2DsXVxTSRjCaUChe+vGvKw0lA8YDIS\nAeDOTEo/LLv1aLeflIpO92mGRaTqj8nOyq5vXNqKSjctNpQ717Mp9NDbkQSt\n0utMsKBPFZOzhiWXNKwdz6hOVGBUNdXfmKl90jM72nt70VhtOrYDS530LYOD\nQRJrnpBG2iijzHTDGEejSsfRnrtRie1NSADsRdG0hqvfMjzOaq/n/18do8Rb\n6+FO\r\n=E0EY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbVEG9m35ZmUUeRra/UpuSCyiGIls4BAtEjc0LkMYsUAiEAjt71863U+ihsyXH9+l2/OPOCVH0VQAJV8sp1RlcPSyw="}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-iterate_2.0.0_1615288169539_0.7512623195363055"},"_hasShrinkwrap":false},"2.0.1":{"name":"array-iterate","version":"2.0.1","description":"`Array#forEach()` but it’s possible to define where to move to next","license":"MIT","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"git+https://github.com/wooorm/array-iterate.git"},"bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.45.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","build":"rimraf \"lib/**/*.d.ts\" \"test.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"4ac6168000b5a1fabd59eb25abaaf5c21336cef0","homepage":"https://github.com/wooorm/array-iterate#readme","_id":"array-iterate@2.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==","shasum":"6efd43f8295b3fee06251d3d62ead4bd9805dd24","tarball":"https://registry.npmjs.org/array-iterate/-/array-iterate-2.0.1.tgz","fileCount":7,"unpackedSize":10941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2juXCRA9TVsSAnZWagAA3rUP/RQONz7HllEuLIXmoPYd\n3zZGJcHVxp4wCts1gMZaGtnH6pCrkhUpbggIfFk90XUCxhKCMkZH+03OfVCb\nBWbeZeuME9oe/L4JYBCm4BXkvHd/AH7NcxnjHGCoaXyuyGAgiFAXrHFgeb0n\nT20qITpUt1FKWjrumklG4AOgm/lJJe03Ad75FkKH+/CnmWTCtoqkh9/rHgCo\nCsbmyZwnynPEyYvbAFqPYQXnEAZ5NGRWoUyRod1vjWN6c1ATybd46HNssYRl\ndIezauWgDfhDBWBjkAQgvHwxDFq9eoLagTO2TarYKefxaTKpijHSXZvo17X3\njMc/8YMzdR1MdBQ7HtoRXUpXP8LUEPsuaUa2l32aI7bg1MAoUFIUMzg6zMyg\nIqTt771VELnRa+MIDd46BDd3O9fNCO+JHkHFouNvkt3wKHAT7kRE3RwYfQip\nfRFnPgrwF/XgIzAnx7DjV6Rqcszu2CICmGitAkMbyWCqfoR84dsn3wdVjVlG\nXJgid2pX8HeIe5GLjr6zWApG/j2JQuKFwR84GdH6NXuDEd71UVc+vBF2TeLw\nD/qLGFNCf9KO3dmioppb6kMHL4Wo9L1h/heUKdSVXGkuj3bTf9/qR6fUoQgY\n7UE9x5dJOSWv5IJXJds5i6eVVDr1GkPu6u8+WptqDkPXyUgP5ShoTIvb8ZM2\nFVvN\r\n=CEgx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA3aFXPu1RqOrUXko1DMB/9poeZIWMoGFhw5rLc8h3Q4AiEA6vJZFhr/4ZmOMzUIblVag/4mAqQMlHuzDixQxHAW/og="}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-iterate_2.0.1_1635349522809_0.37812124775238476"},"_hasShrinkwrap":false}},"readme":"# array-iterate\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\n[`Array#forEach()`][foreach] but it’s possible to define where to move to next.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`arrayIterate(values, callbackFn[, thisArg])`](#arrayiteratevalues-callbackfn-thisarg)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nA tiny package that works just like `forEach`, with one small difference.\n\n## When should I use this?\n\nYou can use this if for some weird reason—like I did—you have to sometimes\nskip a few places ahead or backwards when moving through an array.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:\n\n```sh\nnpm install array-iterate\n```\n\nIn Deno with [Skypack][]:\n\n```js\nimport {arrayIterate} from 'https://cdn.skypack.dev/array-iterate@2?dts'\n```\n\nIn browsers with [Skypack][]:\n\n```html\n<script type=\"module\">\n  import {arrayIterate} from 'https://cdn.skypack.dev/array-iterate@2?min'\n</script>\n```\n\n## Use\n\n```js\nimport {arrayIterate} from 'array-iterate'\n\nlet first = true\n\narrayIterate(\n  [1, 2, 3, 4],\n  (value, index, values) => {\n    console.log(this, value, index, values)\n\n    // Repeat once.\n    if (first && index + 1 === values.length) {\n      first = false\n      return 0\n    }\n  },\n  {hello: 'world'}\n)\n```\n\nYields:\n\n```js\n{hello: 'world'}, 1, 0, [1, 2, 3, 4]\n{hello: 'world'}, 2, 1, [1, 2, 3, 4]\n{hello: 'world'}, 3, 2, [1, 2, 3, 4]\n{hello: 'world'}, 4, 3, [1, 2, 3, 4]\n{hello: 'world'}, 1, 0, [1, 2, 3, 4]\n{hello: 'world'}, 2, 1, [1, 2, 3, 4]\n{hello: 'world'}, 3, 2, [1, 2, 3, 4]\n{hello: 'world'}, 4, 3, [1, 2, 3, 4]\n```\n\n## API\n\nThis package exports the following identifiers: `arrayIterate`.\nThere is no default export.\n\n### `arrayIterate(values, callbackFn[, thisArg])`\n\nPerform the specified action for each element in an array (just like\n[`Array#forEach()`][foreach]).\nWhen `callbackFn` returns a `number`, moves to the element at that index\nnext.\n\n###### Parameters\n\n*   `values` (`Array<*>`)\n    — values to iterate over\n*   `callbackFn` (`Function`)\n    — function called for each element, can return the `index` to move to next\n*   `thisArg` (`*`, optional)\n    — optional object assigned as `this` in `callbackFn`\n\n###### Returns\n\n`undefined`.\n\n#### `function callbackFn(value, index, values)`\n\nCallback given to `iterate`.\n\n###### Parameters\n\n*   `this` (`*`)\n    — context object when given as `thisArg` to `arrayIterate` or `undefined`\n*   `value` (`*`)\n    — element in array\n*   `index` (`number`)\n    — index of `value` in `values`\n*   `values` (`Array.<*>`)\n    — list\n\n###### Returns\n\n`number` or `undefined` — the `index` to move to next.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nThere is also a `CallbackFn` type export that represents the callback function.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 12.20+, 14.14+, and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe, assuming that you don’t create an infinite loop\nby keeping on repeating.\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/array-iterate/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/array-iterate/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/array-iterate.svg\n\n[coverage]: https://codecov.io/github/wooorm/array-iterate\n\n[downloads-badge]: https://img.shields.io/npm/dm/array-iterate.svg\n\n[downloads]: https://www.npmjs.com/package/array-iterate\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/array-iterate.svg\n\n[size]: https://bundlephobia.com/result?p=array-iterate\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[skypack]: https://www.skypack.dev\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[foreach]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach\n","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2022-06-13T03:28:27.390Z","created":"2014-11-12T17:23:09.109Z","0.0.1":"2014-11-12T17:23:09.109Z","0.1.0":"2014-12-05T13:19:16.584Z","1.0.0":"2015-08-23T11:20:58.549Z","1.1.0":"2016-08-08T09:44:48.519Z","1.1.1":"2017-06-20T10:03:27.057Z","1.1.2":"2018-04-14T11:18:54.571Z","1.1.3":"2019-05-06T10:47:28.236Z","1.1.4":"2020-01-26T14:43:46.675Z","2.0.0":"2021-03-09T11:09:29.734Z","2.0.1":"2021-10-27T15:45:22.963Z"},"homepage":"https://github.com/wooorm/array-iterate#readme","keywords":["array","list","iterate","walk"],"repository":{"type":"git","url":"git+https://github.com/wooorm/array-iterate.git"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"bugs":{"url":"https://github.com/wooorm/array-iterate/issues"},"license":"MIT","readmeFilename":"readme.md","contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}]}