setup-php/node_modules/repeat-element/index.js
Shivam Mathur 8f9786b73f init
2019-09-06 05:17:43 +05:30

19 lines
325 B
JavaScript

/*!
* repeat-element <https://github.com/jonschlinkert/repeat-element>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Licensed under the MIT license.
*/
'use strict';
module.exports = function repeat(ele, num) {
var arr = new Array(num);
for (var i = 0; i < num; i++) {
arr[i] = ele;
}
return arr;
};