repeat()

Creates a new string which is the given string repeated the specified number of times.

This function is valid in v2.13.0 to v2.24.2. This function has been downloaded 40 times.

Parameters

{string} string
String to be repeated.
{number} count
Number of times that string should be repeated.

Returns

{string}
A new string which will be string repeated count times.