UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

12 lines 413 B
import RepeatIterator from './internal/RepeatIterator'; /** * Repeats `value` a certain number of times. * @param value The value to repeat. * @param times The number of times to repeat `value` (default: Infinity). */ export function repeat(value, times) { if (times === void 0) { times = Infinity; } return new RepeatIterator(value, times); } export default repeat; //# sourceMappingURL=repeat.js.map