Repeats the given string n times.
n
5.7.0
repeat('*', 3)// => '***'repeat('abc', 2)// => 'abcabc'repeat('abc', 0)// => ''
The string to repeat.
The number of times to repeat the string.
Returns the repeated string.
Repeats the given string
n
times.5.7.0