Repeat given item the specified amount of times (can be BigInt or Infinity times) as an iterable.
BigInt
Infinity
const repeatFoo = repeat("foo");repeatFoo(3); // ["foo", "foo", "foo"]
Curried function with item in context.
item
Item to repeat.
Repeat given item the specified amount of times (can be
BigInt
orInfinity
times) as an iterable.Example
Returns
Curried function with
item
in context.