Search Docs
repeat
Repeats the str the specified count number of times.
str
count
import { repeat } from 'funtool/string' repeat('hi', 3); // ✅ 'hihihi' repeat('hi', 0); // ✅ ''
function repeat(str: string, count: number): string
str (
count (
string