time-to-botec/js/node_modules/@stdlib/string/substring-before-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

28 lines
481 B
Plaintext

{{alias}}( str, search )
Returns the part of a string before the last occurrence of a specified
substring.
Parameters
----------
str: string
Input string.
search: string
Search value.
Returns
-------
out: string
Substring.
Examples
--------
> var str = 'Beep Boop Beep';
> var out = {{alias}}( str, 'Beep' )
'Beep Boop '
> out = {{alias}}( str, 'Boop' )
'Beep '
See Also
--------