blob: 06a8d01d9f5519716e65f01954873423c9000881 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001/*!
2 * repeat-element <https://github.com/jonschlinkert/repeat-element>
3 *
4 * Copyright (c) 2015-present, Jon Schlinkert.
5 * Licensed under the MIT license.
6 */
7
8'use strict';
9
10module.exports = function repeat(ele, num) {
11 var arr = new Array(num);
12
13 for (var i = 0; i < num; i++) {
14 arr[i] = ele;
15 }
16
17 return arr;
18};