{
  "_id": "array-each",
  "maintainers": [
    {
      "name": "jonschlinkert",
      "email": "github@sellside.com"
    }
  ],
  "keywords": [
    "array",
    "each"
  ],
  "dist-tags": {
    "latest": "1.0.1"
  },
  "author": {
    "name": "Jon Schlinkert",
    "url": "https://github.com/jonschlinkert"
  },
  "_rev": "8-7d93ded8edaf9e63d82ec5ae90b52396",
  "description": "Loop over each item in an array and call the given function on every element.",
  "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._",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/jonschlinkert/array-each.git"
  },
  "users": {
    "mkwr": true,
    "rocket0191": true
  },
  "bugs": {
    "url": "https://github.com/jonschlinkert/array-each/issues"
  },
  "license": "MIT",
  "versions": {
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/array-each/-/array-each-0.1.0.tgz",
        "integrity": "sha512-3jlOJm3i3PSE/+nHlAZY+ycD0qkLc090kSD2xpNGVl1aka87e2SF6la8SRx3toaqC3PDM5f82SA7EZzAfotYUw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCsI+B/aCGVe/60/hZmMH7lJmLpIS/m+dN/ABmyUnFa7AIgcx4v9V09Q6HeGGIHMSQUKnIBX3O+jWq2aq95/j5OMw4="
          }
        ]
      }
    },
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/array-each/-/array-each-0.1.1.tgz",
        "integrity": "sha512-UeLKGl1CO9AS8+y+d+sCoI4PEFcphx0fGlPiOgzlYAmofYov5fpqvqZdTEk11nXV2E6a6WtepT2gEB0RL2fnmg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDkC0p5/S2C8DLV1IRvN50/OAHfF1cAcU5AMKerqo7z5gIhAMilUOkxPnAzb+SgXpfpzR6VHC3aDhGsXA8XQsauohSq"
          }
        ]
      }
    },
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/array-each/-/array-each-1.0.0.tgz",
        "integrity": "sha512-NMrBnXihguSxyFS5MFeSNW1wy9Y/F8tjZskc4BS4BhMy0JkRt8/6h/gcVK6589l6mI6IaNtNXBCdH7xmvqp3cg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIGoW+e8sDjdQ6cjdjqbli1FN+5KB8un+DPYoUxhOgP3ZAiEA0SB+9x69TFpILhKk6OYTQKEYs5Dky/SO1kVzwx0BrdI="
          }
        ]
      },
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/array-each-1.0.0.tgz_1488061282176_0.644386061700061"
      }
    },
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/array-each/-/array-each-1.0.1.tgz",
        "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIAxeYRVT+ntaqBQqPD8UYYvpLJoJmiNQKHNIhTMoMTqvAiEAq36Z/dxMWmg456kMzW1BKGUjbR8QH83npMs08fSazEc="
          }
        ]
      },
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/array-each-1.0.1.tgz_1488156048457_0.42185514722950757"
      }
    }
  },
  "name": "array-each",
  "time": {
    "modified": "2026-05-20T15:56:31.561Z",
    "created": "2015-04-19T10:57:15.865Z",
    "0.1.0": "2015-04-19T10:57:15.865Z",
    "0.1.1": "2015-04-28T19:09:08.671Z",
    "1.0.0": "2017-02-25T22:21:24.186Z",
    "1.0.1": "2017-02-27T00:40:50.246Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/jonschlinkert/array-each"
}