aswi2020vldc-gitlab/templetes/node_modules/repeat-element/index.js @ 9bb1e829
1 |
/*!
|
---|---|
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 |
|
10 |
module.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 |
};
|