Skip to content

repeat

String.repeat(target, amount)

Repeats target string amount times.

Example

ts
import { String } from "@monstermann/string";

String.repeat("hello", 3); // "hellohellohello"
ts
import { String } from "@monstermann/string";

pipe("hello", String.repeat(3)); // "hellohellohello"