Top  | Previous | Next

Strings / repeat

repeat(string, count)

Repeats the given string some number of times.

 

repeat("hello", 2)

...returns "hellohello"

 

repeat("hello", 0)

...returns ""