{"_id":"dank-each","_rev":"2-3d627339e4076a6a6af080971585e470","name":"dank-each","description":"A function for iterating over objects, arrays, strings and ranges","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"dank-each","version":"1.0.0","description":"A function for iterating over objects, arrays, strings and ranges","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/wankdanker/node-dank-each.git"},"keywords":["each","attribute","key","index","array","forEach"],"author":{"name":"Dan VerWeire"},"license":"MIT","gitHead":"478b9cac8b5c324b764a3b0fb50e875b0dc5fa30","bugs":{"url":"https://github.com/wankdanker/node-dank-each/issues"},"homepage":"https://github.com/wankdanker/node-dank-each#readme","_id":"dank-each@1.0.0","_shasum":"a861343a4b28d362203d405c77864dc9a6403730","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.0","_npmUser":{"name":"wankdanker","email":"dverweire@gmail.com"},"dist":{"shasum":"a861343a4b28d362203d405c77864dc9a6403730","tarball":"https://registry.npmjs.org/dank-each/-/dank-each-1.0.0.tgz","integrity":"sha512-gMDy24y+3LlnAaHq4WFwRKliMZRkGp41Gy9JVsD1BO5tprb/lEh4afJlkankcTqRoppSaHRwgFQX61QjJ5ClfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5YrkQpwT+BmbKPvecCy9CBUaQshwbuKSjtsmKwh5RzAiBhxnRC3FEz+n74fJkzAKr/k3RuhxC+LtpyFltdZhGvyw=="}]},"maintainers":[{"name":"wankdanker","email":"dverweire@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dank-each-1.0.0.tgz_1495769959578_0.49809047509916127"}}},"readme":"dank-each\n--------\n\nExecute a function `fn` for each `key` or `index` in `obj`.\n\napi\n---\n\neach(obj, fn);\n\n* _obj_ - the object for which `fn` will be called for each `key` or `index`.\n\tThis can be an Array, Object, String, Number, Range or whatever.\n* _fn_  - callback function which is called for each `key` or `index`.\n\tReview the callback function section below.\n\nthe callback\n------------\n\nWhen `fn` is called it is passed the following arguments:\n\n* _key_ - the `key`, `index`, or attribute name from the object \n* _value_ - the value of the current key, index or attribute.\n* _end_ *function* - call this `function` to stop iterating over `obj`.\n\nexample\n-------\n\n```javascript\na = [40,50,2,1];\n\neach(a, function (key, val, end) {\n     //key is the index in the array\n\n     if (val > 10) {\n             return val;\n     }\n});\n\n/*\n * Ranges\n */\n\neach(each.range(1, 10, 2), function (i) {\n\t//this function will be called based on this for loop\n\t//for (var x = 1; x <= 10; x += 2)\n});\n```\n\nlicense\n----------\n\n### The MIT License (MIT)\n\n\nCopyright (c) 2017 Daniel L. VerWeire\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"wankdanker","email":"dverweire@gmail.com"}],"time":{"modified":"2022-06-14T18:15:23.321Z","created":"2017-05-26T03:39:20.513Z","1.0.0":"2017-05-26T03:39:20.513Z"},"homepage":"https://github.com/wankdanker/node-dank-each#readme","keywords":["each","attribute","key","index","array","forEach"],"repository":{"type":"git","url":"git+https://github.com/wankdanker/node-dank-each.git"},"author":{"name":"Dan VerWeire"},"bugs":{"url":"https://github.com/wankdanker/node-dank-each/issues"},"license":"MIT","readmeFilename":"README.md"}