Add production dependencies
This commit is contained in:
parent
5a0114f3e2
commit
579ccdc29f
12113 changed files with 978046 additions and 3 deletions
22
node_modules/repeat-element/index.js
generated
vendored
Normal file
22
node_modules/repeat-element/index.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*!
|
||||
* 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) {
|
||||
if (Array.prototype.fill) {
|
||||
return new Array(num).fill(ele);
|
||||
}
|
||||
|
||||
var arr = new Array(num);
|
||||
|
||||
for (var i = 0; i < num; i++) {
|
||||
arr[i] = ele;
|
||||
}
|
||||
|
||||
return arr;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue