1 # 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)
3 > Create an array by repeating the given value n times.
5 Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
9 Install with [npm](https://www.npmjs.com/):
12 $ npm install --save repeat-element
18 const repeat = require('repeat-element');
21 //=> ['a', 'a', 'a', 'a', 'a']
30 //» [ null, null, null, null, null ]
32 repeat({some: 'object'}, 5)
33 //» [ { some: 'object' },
34 // { some: 'object' },
35 // { some: 'object' },
36 // { some: 'object' },
37 // { some: 'object' } ]
46 <summary><strong>Contributing</strong></summary>
48 Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
53 <summary><strong>Running Tests</strong></summary>
55 Running 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:
58 $ npm install && npm test
64 <summary><strong>Building docs</strong></summary>
66 _(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.)_
68 To generate the readme, run the following command:
71 $ npm install -g verbose/verb#dev verb-generate-readme && verb
78 | **Commits** | **Contributor** |
80 | 17 | [jonschlinkert](https://github.com/jonschlinkert) |
81 | 3 | [LinusU](https://github.com/LinusU) |
82 | 1 | [architectcodes](https://github.com/architectcodes) |
88 * [GitHub Profile](https://github.com/jonschlinkert)
89 * [Twitter Profile](https://twitter.com/jonschlinkert)
90 * [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
94 Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).
95 Released under the [MIT License](LICENSE).
99 _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on August 19, 2018._