time-to-botec/js/node_modules/@stdlib/string/substring-before-last/docs/repl.txt

28 lines
481 B
Plaintext
Raw Normal View History

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