Skip to content

repeat

repeat(target, amount)

Repeats target string amount times.

ts
repeat("hello", 3); // "hellohellohello"
ts
pipe("hello", repeat(3)); // "hellohellohello"