Search Docs
repeat
将 str 重复指定的 count 次数。
str
count
import { repeat } from 'funtool/string' repeat('hi', 3); // ✅ 'hihihi' repeat('hi', 0); // ✅ ''
function repeat(str: string, count: number): string
string
number