function repeat(value, n) {
  const array = [];
  for (let i = 0; i < n; i++) {
    array[i] = value;
  }
  return array;
}
Returns an array consisting of the given value repeated N times.

@param {VALUE} value The value to repeat.
@param {number} n The repeat count.
@return {!Array<VALUE>} An array with the repeated value.
@template VALUE