{"_id":"repeat-element","_rev":"287064","name":"repeat-element","description":"Create an array by repeating the given value n times.","dist-tags":{"latest":"1.1.4"},"maintainers":[{"name":"jonschlinkert","email":""}],"time":{"modified":"2023-09-20T22:03:05.000Z","created":"2015-01-11T23:45:10.936Z","1.1.4":"2021-04-07T23:13:01.181Z","1.1.3":"2018-08-19T15:30:30.501Z","1.1.2":"2015-05-07T03:19:33.716Z","1.1.1":"2015-05-07T03:17:19.496Z","1.1.0":"2015-01-26T17:56:50.027Z","1.0.0":"2015-01-11T23:45:10.936Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/repeat-element.git"},"versions":{"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":{"shasum":"be681520847ab58c7568ac75fbfad28ed42d39e9","size":2419,"noattachment":false,"key":"/repeat-element/-/repeat-element-1.1.4.tgz","tarball":"http://name.csiicloud.com:7001/repeat-element/download/repeat-element-1.1.4.tgz"},"_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"directories":{},"maintainers":[{"name":"jonschlinkert","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/repeat-element_1.1.4_1617837181056_0.32521719147812256"},"_hasShrinkwrap":false,"publish_time":1617837181181,"_cnpm_publish_time":1617837181181,"_cnpmcore_publish_time":"2021-12-13T13:10:06.692Z"},"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":{"shasum":"782e0d825c0c5a3bb39731f84efee6b742e6b1ce","size":2390,"noattachment":false,"key":"/repeat-element/-/repeat-element-1.1.3.tgz","tarball":"http://name.csiicloud.com:7001/repeat-element/download/repeat-element-1.1.3.tgz"},"maintainers":[{"name":"jonschlinkert","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/repeat-element_1.1.3_1534692630389_0.5249467379316295"},"_hasShrinkwrap":false,"publish_time":1534692630501,"_cnpm_publish_time":1534692630501},"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":""}],"dist":{"shasum":"ef089a178d1483baae4d93eb98b4f9e4e11d990a","size":1872,"noattachment":false,"key":"/repeat-element/-/repeat-element-1.1.2.tgz","tarball":"http://name.csiicloud.com:7001/repeat-element/download/repeat-element-1.1.2.tgz"},"directories":{},"publish_time":1430968773716,"_cnpm_publish_time":1430968773716,"_hasShrinkwrap":false},"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":""}],"dist":{"shasum":"18120b13aa79a932495b357529c76935522ff599","size":1861,"noattachment":false,"key":"/repeat-element/-/repeat-element-1.1.1.tgz","tarball":"http://name.csiicloud.com:7001/repeat-element/download/repeat-element-1.1.1.tgz"},"directories":{},"publish_time":1430968639496,"_cnpm_publish_time":1430968639496,"_hasShrinkwrap":false},"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":""}],"dist":{"shasum":"3307c041c52bb36a36e380de2d252ef61a907cca","size":1114,"noattachment":false,"key":"/repeat-element/-/repeat-element-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/repeat-element/download/repeat-element-1.1.0.tgz"},"directories":{},"publish_time":1422295010027,"_cnpm_publish_time":1422295010027,"_hasShrinkwrap":false},"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":""}],"dist":{"shasum":"8eb69be1627e61adb320e121be0e6621c7476918","size":1682,"noattachment":false,"key":"/repeat-element/-/repeat-element-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/repeat-element/download/repeat-element-1.0.0.tgz"},"directories":{},"publish_time":1421019910936,"_cnpm_publish_time":1421019910936,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/repeat-element","bugs":{"url":"https://github.com/jonschlinkert/repeat-element/issues"},"license":"MIT"}