time-to-botec/squiggle/node_modules/@stdlib/string/remove-last/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
476 B
Plaintext

{{alias}}( str[, n] )
Removes the last character(s) of a `string`.
Parameters
----------
str: string
Input string.
n: integer (optional)
Number of characters to remove. Default: 1.
Returns
-------
out: string
Updated string.
Examples
--------
> var out = {{alias}}( 'beep' )
'bee'
> out = {{alias}}( 'Boop' )
'Boo'
> out = {{alias}}( 'foo bar', 4 )
'foo'
See Also
--------