Returns a Stream that yields the same value 'times' number of times.
Type of the value.
Value to repeat.
Number of times to repeat the value.
A Stream that yields the value 'times' number of times.
const result = repeat('A', 3);console.log([...result]); // ['A', 'A', 'A'] Copy
const result = repeat('A', 3);console.log([...result]); // ['A', 'A', 'A']
Returns a Stream that yields the same value 'times' number of times.