All files / src/utils repeat.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8  15x   96x 96x 1492x   96x
export default function repeat( n, x ) {
  var arr = [],
    i;
  for ( i = 0; i < n; i++ ) {
    arr.push( x );
  }
  return arr;
}