time-to-botec/squiggle/node_modules/@stdlib/string/repeat/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

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
--------