PLAYGROUND (experimental)

str_repeat

Repeats a string specified number of times.
str_repeat(
    str, 
    count
) -> STRING

Repeats a string specified number of times.

Syntaxe

var result = str_repeat("abc", 2);  // Returns "abcabc"

Arguments

NameTypeRequiredDefaultDescription
stryes-String to repeat
countyes-Number of repetitions