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

27 lines
439 B
Plaintext
Raw Normal View History

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