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

33 lines
683 B
Plaintext

{{alias}}( str, search[, fromIndex] )
Returns the part of a string after the last occurrence of a specified
substring.
Parameters
----------
str: string
Input string.
search: string
Search value.
fromIndex: integer (optional)
Index of last character to be considered beginning of a match.
Default: `str.length`.
Returns
-------
out: string
Substring.
Examples
--------
> var out = {{alias}}( 'beep boop beep baz', 'beep' )
' baz'
> out = {{alias}}( 'Hello World!', 'Hello ' )
'World!'
> out = {{alias}}( 'Hello World!', 'o', 5 )
' World!'
See Also
--------