Global

Methods


repeat(pattern, count)

Repeats a pattern n times (where n equals to count).

Parameters:
Name Type Description
pattern String
count Number
Returns:

result

Type
String
Example
repeat("-", 10) === "----------";