{"_id":"array-each","_rev":"70189","name":"array-each","description":"Loop over each item in an array and call the given function on every element.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:23:12.000Z","created":"2015-04-19T10:57:15.865Z","1.0.1":"2017-02-27T00:40:50.246Z","1.0.0":"2017-02-25T22:21:24.186Z","0.1.1":"2015-04-28T19:09:08.671Z","0.1.0":"2015-04-19T10:57:15.865Z"},"users":{"mkwr":true,"rocket0191":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/array-each.git"},"versions":{"1.0.1":{"name":"array-each","description":"Loop over each item in an array and call the given function on every element.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/array-each","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/array-each.git"},"bugs":{"url":"https://github.com/jonschlinkert/array-each/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["array","each"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["collection-map","arr-filter","arr-map"]},"lint":{"reflinks":true}},"gitHead":"a752d70897f25abfd38bfb51bb1b3a06ffcd2aed","_id":"array-each@1.0.1","_shasum":"a794af0c05ab1752846ee753a1f211a05ba0c44f","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a794af0c05ab1752846ee753a1f211a05ba0c44f","size":2622,"noattachment":false,"key":"/array-each/-/array-each-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-each/download/array-each-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/array-each-1.0.1.tgz_1488156048457_0.42185514722950757"},"directories":{},"publish_time":1488156050246,"_cnpm_publish_time":1488156050246,"_hasShrinkwrap":false},"1.0.0":{"name":"array-each","description":"Loop over each item in an array and call the given function on every element.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/array-each","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/array-each.git"},"bugs":{"url":"https://github.com/jonschlinkert/array-each/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["array","each"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"ca05b44e5c7945d1c514efcbeede5bc4db01f0f9","_id":"array-each@1.0.0","_shasum":"a682ffcc941145fa4c1304fd8e82099ddddd3583","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a682ffcc941145fa4c1304fd8e82099ddddd3583","size":2419,"noattachment":false,"key":"/array-each/-/array-each-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-each/download/array-each-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/array-each-1.0.0.tgz_1488061282176_0.644386061700061"},"directories":{},"publish_time":1488061284186,"_cnpm_publish_time":1488061284186,"_hasShrinkwrap":false},"0.1.1":{"name":"array-each","description":"Loop over each item in an array and call the given function on every element.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/array-each","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/array-each.git"},"bugs":{"url":"https://github.com/jonschlinkert/array-each/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/array-each/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"keywords":[],"gitHead":"3a1a5c20d28b2cf952d5f286934fb31010fed4c8","_id":"array-each@0.1.1","_shasum":"c5d52ba8225f36d728178ba7aec413acfaddd0f9","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c5d52ba8225f36d728178ba7aec413acfaddd0f9","size":2484,"noattachment":false,"key":"/array-each/-/array-each-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-each/download/array-each-0.1.1.tgz"},"directories":{},"publish_time":1430248148671,"_cnpm_publish_time":1430248148671,"_hasShrinkwrap":false},"0.1.0":{"name":"array-each","description":"Loop over each item in an array and call the given function on every element.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/array-each","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/array-each.git"},"bugs":{"url":"https://github.com/jonschlinkert/array-each/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/array-each/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"keywords":[],"_id":"array-each@0.1.0","_shasum":"fe2c274138ca0e571e51481bbab1bd7f8f16ec78","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"fe2c274138ca0e571e51481bbab1bd7f8f16ec78","size":2401,"noattachment":false,"key":"/array-each/-/array-each-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-each/download/array-each-0.1.0.tgz"},"directories":{},"publish_time":1429441035865,"_cnpm_publish_time":1429441035865,"_hasShrinkwrap":false}},"readme":"# array-each [![NPM version](https://img.shields.io/npm/v/array-each.svg?style=flat)](https://www.npmjs.com/package/array-each) [![NPM monthly downloads](https://img.shields.io/npm/dm/array-each.svg?style=flat)](https://npmjs.org/package/array-each)  [![NPM total downloads](https://img.shields.io/npm/dt/array-each.svg?style=flat)](https://npmjs.org/package/array-each) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/array-each.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/array-each)\n\n> Loop over each item in an array and call the given function on every element.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save array-each\n```\n\n## Usage\n\n### [each](index.js#L34)\n\nLoop over each item in an array and call the given function on every element.\n\n**Params**\n\n* `array` **{Array}**\n* `fn` **{Function}**\n* `thisArg` **{Object}**: (optional) pass a `thisArg` to be used as the context in which to call the function.\n* `returns` **{undefined}**\n\n**Example**\n\n```js\neach(['a', 'b', 'c'], function(ele) {\n  return ele + ele;\n});\n//=> ['aa', 'bb', 'cc']\n\neach(['a', 'b', 'c'], function(ele, i) {\n  return i + ele;\n});\n//=> ['0a', '1b', '2c']\n```\n\n## About\n\n### Related projects\n\n* [arr-filter](https://www.npmjs.com/package/arr-filter): Faster alternative to javascript's native filter method. | [homepage](https://github.com/jonschlinkert/arr-filter \"Faster alternative to javascript's native filter method.\")\n* [arr-map](https://www.npmjs.com/package/arr-map): Faster, node.js focused alternative to JavaScript's native array map. | [homepage](https://github.com/jonschlinkert/arr-map \"Faster, node.js focused alternative to JavaScript's native array map.\")\n* [collection-map](https://www.npmjs.com/package/collection-map): Returns an array of mapped values from an array or object. | [homepage](https://github.com/jonschlinkert/collection-map \"Returns an array of mapped values from an array or object.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 26, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/array-each","bugs":{"url":"https://github.com/jonschlinkert/array-each/issues"},"license":"MIT"}