{
  "_id": "repeat-element",
  "maintainers": [
    {
      "name": "jonschlinkert",
      "email": "github@sellside.com"
    }
  ],
  "keywords": [
    "array",
    "element",
    "repeat",
    "string"
  ],
  "dist-tags": {
    "latest": "1.1.4"
  },
  "author": {
    "name": "Jon Schlinkert",
    "url": "https://github.com/jonschlinkert"
  },
  "_rev": "11-e1eb3344b23dbe538811c99906d2053b",
  "description": "Create an array by repeating the given value n times.",
  "readme": "# repeat-element [![NPM version](https://img.shields.io/npm/v/repeat-element.svg?style=flat)](https://www.npmjs.com/package/repeat-element) [![NPM monthly downloads](https://img.shields.io/npm/dm/repeat-element.svg?style=flat)](https://npmjs.org/package/repeat-element) [![NPM total downloads](https://img.shields.io/npm/dt/repeat-element.svg?style=flat)](https://npmjs.org/package/repeat-element) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/repeat-element.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/repeat-element)\n\n> Create an array by repeating the given value n times.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save repeat-element\n```\n\n## Usage\n\n```js\nconst repeat = require('repeat-element');\n\nrepeat('a', 5);\n//=> ['a', 'a', 'a', 'a', 'a']\n\nrepeat('a', 1);\n//=> ['a']\n\nrepeat('a', 0);\n//=> []\n\nrepeat(null, 5)\n//» [ null, null, null, null, null ]\n\nrepeat({some: 'object'}, 5)\n//» [ { some: 'object' },\n//    { some: 'object' },\n//    { some: 'object' },\n//    { some: 'object' },\n//    { some: 'object' } ]\n\nrepeat(5, 5)\n//» [ 5, 5, 5, 5, 5 ]\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\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</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\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</details>\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 17 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 3 | [LinusU](https://github.com/LinusU) |\n| 1 | [architectcodes](https://github.com/architectcodes) |\n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2018, [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.6.0, on August 19, 2018._",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/jonschlinkert/repeat-element.git"
  },
  "bugs": {
    "url": "https://github.com/jonschlinkert/repeat-element/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "repeat-element",
      "description": "Create an array by repeating the given string n times.",
      "version": "1.0.0",
      "homepage": "https://github.com/jonschlinkert/repeat-element",
      "author": {
        "name": "Jon Schlinkert",
        "url": "https://github.com/jonschlinkert"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/jonschlinkert/repeat-element.git"
      },
      "bugs": {
        "url": "https://github.com/jonschlinkert/repeat-element/issues"
      },
      "license": {
        "type": "MIT",
        "url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE-MIT"
      },
      "main": "index.js",
      "engines": {
        "node": ">=0.10.0"
      },
      "scripts": {
        "test": "mocha -R spec"
      },
      "devDependencies": {
        "mocha": "*"
      },
      "keywords": [
        "array",
        "element",
        "repeat",
        "string"
      ],
      "gitHead": "156ba7d5b3b8c36c15b09f1a60d4d26ce0ccb02e",
      "_id": "repeat-element@1.0.0",
      "_shasum": "8eb69be1627e61adb320e121be0e6621c7476918",
      "_from": ".",
      "_npmVersion": "1.4.23",
      "_npmUser": {
        "name": "jonschlinkert",
        "email": "github@sellside.com"
      },
      "maintainers": [
        {
          "name": "jonschlinkert",
          "email": "github@sellside.com"
        }
      ],
      "dist": {
        "shasum": "8eb69be1627e61adb320e121be0e6621c7476918",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/repeat-element/-/repeat-element-1.0.0.tgz",
        "integrity": "sha512-XSMA4wBA2ai3/SISiouO2ZT9j6p3jdzHKWdeK19SQFJgSf/FcJD21bhWUPSeQxxKIkN47NIg19Kb5YReh5BgCw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIEWO8Rcflyhn23UfBTrEcQqM+qOY4HvRGLRMcy0Ybb8sAiEA4/mGGDtccZgeblrmonfK1H1YWF5ijINQpwCJzgQO9ew="
          }
        ]
      },
      "directories": {}
    },
    "1.1.0": {
      "name": "repeat-element",
      "description": "Create an array by repeating the given string n times.",
      "version": "1.1.0",
      "homepage": "https://github.com/jonschlinkert/repeat-element",
      "author": {
        "name": "Jon Schlinkert",
        "url": "https://github.com/jonschlinkert"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/jonschlinkert/repeat-element.git"
      },
      "bugs": {
        "url": "https://github.com/jonschlinkert/repeat-element/issues"
      },
      "license": {
        "type": "MIT",
        "url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE-MIT"
      },
      "main": "index.js",
      "engines": {
        "node": ">=0.10.0"
      },
      "scripts": {
        "test": "mocha -R spec"
      },
      "files": [
        "index.js"
      ],
      "devDependencies": {
        "benchmarked": "^0.1.3",
        "chalk": "^0.5.1",
        "glob": "^4.3.5",
        "minimist": "^1.1.0",
        "mocha": "*"
      },
      "keywords": [
        "array",
        "element",
        "repeat",
        "string"
      ],
      "gitHead": "4810bfdaa6749c3f7e5013f2c23fe1bc43c61e1f",
      "_id": "repeat-element@1.1.0",
      "_shasum": "3307c041c52bb36a36e380de2d252ef61a907cca",
      "_from": ".",
      "_npmVersion": "1.4.28",
      "_npmUser": {
        "name": "jonschlinkert",
        "email": "github@sellside.com"
      },
      "maintainers": [
        {
          "name": "jonschlinkert",
          "email": "github@sellside.com"
        }
      ],
      "dist": {
        "shasum": "3307c041c52bb36a36e380de2d252ef61a907cca",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/repeat-element/-/repeat-element-1.1.0.tgz",
        "integrity": "sha512-LL8kcPv2clFIx1ZzOiaLYM7GP4vsNMO1pe4fBLK09oBmw0rJu7Ugd3unDeebm7NBsEaIQZkAZMbSHIWgEpIajw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIFCoXBXN+Bf68rrIRJFBPAeXB13CkmdfsjkV4TT4zgJ+AiAEJiqENuwePENstJHwiEHgWrrnhRmfJIeBny3+VrkjMA=="
          }
        ]
      },
      "directories": {}
    },
    "1.1.1": {
      "name": "repeat-element",
      "description": "Create an array by repeating the given value n times.",
      "version": "1.1.1",
      "homepage": "https://github.com/jonschlinkert/repeat-element",
      "author": {
        "name": "Jon Schlinkert",
        "url": "https://github.com/jonschlinkert"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/jonschlinkert/repeat-element.git"
      },
      "bugs": {
        "url": "https://github.com/jonschlinkert/repeat-element/issues"
      },
      "license": {
        "type": "MIT",
        "url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE"
      },
      "main": "index.js",
      "engines": {
        "node": ">=0.10.0"
      },
      "scripts": {
        "test": "mocha"
      },
      "files": [
        "index.js"
      ],
      "keywords": [
        "array",
        "element",
        "repeat",
        "string"
      ],
      "devDependencies": {
        "benchmarked": "^0.1.4",
        "chalk": "^1.0.0",
        "glob": "^5.0.5",
        "minimist": "^1.1.1"
      },
      "gitHead": "8cc3318bd824c364102de01e3afe53a4290f4ae3",
      "_id": "repeat-element@1.1.1",
      "_shasum": "18120b13aa79a932495b357529c76935522ff599",
      "_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": "18120b13aa79a932495b357529c76935522ff599",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/repeat-element/-/repeat-element-1.1.1.tgz",
        "integrity": "sha512-YoororYtRyOh5ZJ3d96ErVogrYrWG+1yWfUQPSqAbmxCwmAgdNMamkfsvHAzexqbzuwOCtgSP9PQrMpymIHFsQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDFkmPffx5yy7EtYBQofMZ/zCsLGWNwDJwfl5MaE4BMWgIhAPfwf8OocUijp5ht25ghIajW7ZUTeNdFzS1nKJSF6xJg"
          }
        ]
      },
      "directories": {}
    },
    "1.1.2": {
      "name": "repeat-element",
      "description": "Create an array by repeating the given value n times.",
      "version": "1.1.2",
      "homepage": "https://github.com/jonschlinkert/repeat-element",
      "author": {
        "name": "Jon Schlinkert",
        "url": "https://github.com/jonschlinkert"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/jonschlinkert/repeat-element.git"
      },
      "bugs": {
        "url": "https://github.com/jonschlinkert/repeat-element/issues"
      },
      "license": {
        "type": "MIT",
        "url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE"
      },
      "main": "index.js",
      "engines": {
        "node": ">=0.10.0"
      },
      "scripts": {
        "test": "mocha"
      },
      "files": [
        "index.js"
      ],
      "keywords": [
        "array",
        "element",
        "repeat",
        "string"
      ],
      "devDependencies": {
        "benchmarked": "^0.1.4",
        "chalk": "^1.0.0",
        "glob": "^5.0.5",
        "minimist": "^1.1.1",
        "mocha": "^2.2.4"
      },
      "gitHead": "7a6b21d58eafcc44fc8de133c70a8398ee9fdd8d",
      "_id": "repeat-element@1.1.2",
      "_shasum": "ef089a178d1483baae4d93eb98b4f9e4e11d990a",
      "_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": "ef089a178d1483baae4d93eb98b4f9e4e11d990a",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/repeat-element/-/repeat-element-1.1.2.tgz",
        "integrity": "sha512-PJn5P/wQgXwp0Bpmzv9JU693QYky9P5bwntpuw8SsMXgUZHlcEyr9Vajgp/zhGSFX56/lv9Bz2k9mKrkpxLI4A==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCIUyDS3TzLXxXojcRHWUx9b8/11RQo4Qv7+jmEGuOhJwIhAJyARaqhukvwFw5jqzb17jTBT6O1Go+0pTfPZB5srvsF"
          }
        ]
      },
      "directories": {}
    },
    "1.1.3": {
      "name": "repeat-element",
      "description": "Create an array by repeating the given value n times.",
      "version": "1.1.3",
      "homepage": "https://github.com/jonschlinkert/repeat-element",
      "author": {
        "name": "Jon Schlinkert",
        "url": "https://github.com/jonschlinkert"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/jonschlinkert/repeat-element.git"
      },
      "bugs": {
        "url": "https://github.com/jonschlinkert/repeat-element/issues"
      },
      "license": "MIT",
      "files": [
        "index.js"
      ],
      "main": "index.js",
      "engines": {
        "node": ">=0.10.0"
      },
      "scripts": {
        "test": "mocha"
      },
      "devDependencies": {
        "benchmarked": "^2.0.0",
        "chalk": "^2.4.1",
        "glob": "^7.1.2",
        "gulp-format-md": "^1.0.0",
        "minimist": "^1.2.0",
        "mocha": "^3.5.3"
      },
      "keywords": [
        "array",
        "element",
        "repeat",
        "string"
      ],
      "verb": {
        "toc": false,
        "layout": "default",
        "tasks": [
          "readme"
        ],
        "plugins": [
          "gulp-format-md"
        ],
        "lint": {
          "reflinks": true
        }
      },
      "gitHead": "32af174b4218263952a77d881f37d6e545b7cfd0",
      "_id": "repeat-element@1.1.3",
      "_npmVersion": "6.4.0",
      "_nodeVersion": "10.0.0",
      "_npmUser": {
        "name": "jonschlinkert",
        "email": "github@sellside.com"
      },
      "dist": {
        "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==",
        "shasum": "782e0d825c0c5a3bb39731f84efee6b742e6b1ce",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/repeat-element/-/repeat-element-1.1.3.tgz",
        "fileCount": 4,
        "unpackedSize": 5319,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbeY0WCRA9TVsSAnZWagAA9+8P/1uuLJ5jSetjPW5fdV4L\nvxHfZDwhxYdhTFCDvxFRTtXJrZRf0mI+ET5WsuAHSi/v+e4A0/qOZMCq1ggs\nyAeONQq6ChtiYaingdb9x18J4ULeSaeXF4W01n0tfb56LeLcUS1v+4kn99uQ\nfDdh+iwqBPxs/KmDhjR6Ihy9OoVhj3XMr4pElL3noSsnGyNUUobTxmEGUN4r\n9VXRBa90acEjPzBw9H6H0H9kmWEH3YMgZ4kvGUV/kICkZJDfbP/4z3VBj+kQ\nfLHV/emGFCkK19wf3GpgCCYstUyPy3QLWc5htSo011mlZYu2YK3zLlFPxWpR\nf/Doxn0VNluyHOKae0DrfKqfErSx8qYw8F3d3gbO7a26FHljD8wSG5WXooCl\nUiH7YMmZ6nwbKWlFh1XfyYXzDX/Na01mcZ9MzPycwJbAT6bWCPb6clh+uoIw\n9fd7Dqe7SrPWL7e1oA4qIzcgoVSsrkSGkwoXUxiUsklVXxdpUd+MPic4xdhi\nVmVl1b4Zlgd2wST+8HwKf57Ug+G8M4R3r2iu4y8yZL8pb3gMVSkgF+TgOYuw\nCM1HbPnqafmlck/Vtm7po18aUFc55jMxKQLe7eBtlLYc8h/HhD9um1THRKhm\njMsOslwPB4Y6G7nvm2wx8dLQl0PFG9astOg81ddE1o+HjgcxOwbUEAb/oqzZ\ngHyf\r\n=mFVv\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCHvbakVIZHHnK+CCXLrAIQEGBThte+ax5ptKA1X626gwIgaNTXIpVQUrkEdUZ6NnDQ+1Qb8CZQE42qMlyd5lBp3vQ="
          }
        ]
      },
      "maintainers": [
        {
          "name": "jonschlinkert",
          "email": "github@sellside.com"
        }
      ],
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/repeat-element_1.1.3_1534692630389_0.5249467379316295"
      },
      "_hasShrinkwrap": false
    },
    "1.1.4": {
      "name": "repeat-element",
      "description": "Create an array by repeating the given value n times.",
      "version": "1.1.4",
      "homepage": "https://github.com/jonschlinkert/repeat-element",
      "author": {
        "name": "Jon Schlinkert",
        "url": "https://github.com/jonschlinkert"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/jonschlinkert/repeat-element.git"
      },
      "bugs": {
        "url": "https://github.com/jonschlinkert/repeat-element/issues"
      },
      "license": "MIT",
      "main": "index.js",
      "engines": {
        "node": ">=0.10.0"
      },
      "scripts": {
        "test": "mocha"
      },
      "devDependencies": {
        "benchmarked": "^2.0.0",
        "chalk": "^2.4.1",
        "glob": "^7.1.2",
        "gulp-format-md": "^1.0.0",
        "minimist": "^1.2.0",
        "mocha": "^3.5.3"
      },
      "keywords": [
        "array",
        "element",
        "repeat",
        "string"
      ],
      "verb": {
        "toc": false,
        "layout": "default",
        "tasks": [
          "readme"
        ],
        "plugins": [
          "gulp-format-md"
        ],
        "lint": {
          "reflinks": true
        }
      },
      "gitHead": "874e2b3843fb0ae342cb41f40e387f4908ee048d",
      "_id": "repeat-element@1.1.4",
      "_nodeVersion": "15.11.0",
      "_npmVersion": "7.6.0",
      "dist": {
        "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==",
        "shasum": "be681520847ab58c7568ac75fbfad28ed42d39e9",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/repeat-element/-/repeat-element-1.1.4.tgz",
        "fileCount": 4,
        "unpackedSize": 5391,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbjx9CRA9TVsSAnZWagAAdWUP/0hxLJkCezCSHbORJh1x\nXFhUrg/Yd4ybc/uQHI4POlR1km5WNmpORm7TLWZaVRUBj+r5m9BL+Hhe0x2J\ndEp5uTRcK/SYQ2Pv+AI79plVXp67WMatCPO+yjiqXvUQr5zR+8Q+50veUbKx\n3ozG9eq/b/MnS5JjUUs4ndwicANuhtcRWkP7dIWc+AV2QwJ51ysGMSQykzYi\nX4x9GVY6eECm/R6vw9UpIMZ7AQb21mthIg4akQ59vRPRwaZjz4py/S4kpqmS\nGFl6I8YRhalU5ekfRKBKIJLdfEw3Xb/ikHIXOFNiE+mls+QvsVQCLq5bSQFe\nJ7+t3onNUpu3r0jbwXvwxTzc0oN2O+X34ZRG31w5Hg8FJFpjD2TLh2Kcxhpr\ncQp+Xp/VPKm0DStnMH0qnNevAZRiEo+PHXkt7Z4ZCh3Wo9pheuGMzIEp4fRw\nmUM4JCA8wbmI0RStMzjFFIfSdRbBCgKByQ8695as+oXQhkBrgRgEhuAtJNUx\n4fs1g4u7XoTlKszrSXXkSfFBJDQpkMDgG6Y0lKLV462H8/i+j61uJjvxhzMG\ndsCpPwXj9NXffinkdriUpmtW6wosN1W58gke+WmQ+AxHCIa9lRztLQvQBqTf\nKiF+NKLJeuDaCRrN/RlhRR+RI3wHnSbxmQt9gms7auyJgMoBLIioDBGp0bHY\ndY0C\r\n=zzS9\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCB/2Ma9GbbqNol4go4aURm6RP7m4ECpN+vkXyS6mBOngIgT9vmr0r6VT0eULFCQHMkxxhD5R6EOI0OdyCNgMVbCGw="
          }
        ]
      },
      "_npmUser": {
        "name": "jonschlinkert",
        "email": "github@sellside.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "jonschlinkert",
          "email": "github@sellside.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/repeat-element_1.1.4_1617837181056_0.32521719147812256"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "repeat-element",
  "time": {
    "modified": "2026-05-20T15:56:32.480Z",
    "created": "2015-01-11T23:45:10.936Z",
    "1.0.0": "2015-01-11T23:45:10.936Z",
    "1.1.0": "2015-01-26T17:56:50.027Z",
    "1.1.1": "2015-05-07T03:17:19.496Z",
    "1.1.2": "2015-05-07T03:19:33.716Z",
    "1.1.3": "2018-08-19T15:30:30.501Z",
    "1.1.4": "2021-04-07T23:13:01.181Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/jonschlinkert/repeat-element"
}