TypeScriptStringrepeat

Returns a new string which contains the specified number of copies of the string.

Syntax

str.repeat(count: number): string