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.14.0. This function has been downloaded 26 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.