Projekt

Obecné

Profil

Stáhnout (325 Bajtů) Statistiky
| Větev: | Revize:
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
};
(3-3/4)