30 lines
456 B
Plaintext
30 lines
456 B
Plaintext
|
|
||
|
{{alias}}( str, n )
|
||
|
Repeats a string `n` times and returns the concatenated result.
|
||
|
|
||
|
Parameters
|
||
|
----------
|
||
|
str: string
|
||
|
Input string.
|
||
|
|
||
|
n: integer
|
||
|
Number of repetitions.
|
||
|
|
||
|
Returns
|
||
|
-------
|
||
|
out: string
|
||
|
Repeated string.
|
||
|
|
||
|
Examples
|
||
|
--------
|
||
|
> var out = {{alias}}( 'a', 5 )
|
||
|
'aaaaa'
|
||
|
> out = {{alias}}( '', 100 )
|
||
|
''
|
||
|
> out = {{alias}}( 'beep', 0 )
|
||
|
''
|
||
|
|
||
|
See Also
|
||
|
--------
|
||
|
|