time-to-botec/squiggle/node_modules/@stdlib/string/right-trim-n/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

29 lines
543 B
Plaintext

{{alias}}( str, n[, chars] )
Trims `n` characters from the end of a string.
Parameters
----------
str: string
Input string.
n: integer
Number of characters to trim.
chars: Array<string>|string (optional)
Characters to trim. Default: whitespace characters.
Returns
-------
out: string
Trimmed string.
Examples
--------
> var out = {{alias}}( ' abc ', 2 )
' abc'
> var out = {{alias}}( '!!!abc!!!', 2, '!' )
'!!!abc!'
See Also
--------