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

27 lines
439 B
Plaintext

{{alias}}( str, search )
Returns the part of a string before a specified substring.
Parameters
----------
str: string
Input string.
search: string
Search string.
Returns
-------
out: string
Substring.
Examples
--------
> var str = 'beep boop';
> var out = {{alias}}( str, ' ' )
'beep'
> out = {{alias}}( str, 'o' )
'beep b'
See Also
--------