time-to-botec/js/node_modules/@stdlib/assert/is-regexp-string/docs/repl.txt

29 lines
484 B
Plaintext
Raw Normal View History

{{alias}}( value )
Tests if a value is a regular expression string.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether value is a regular expression string.
Examples
--------
> var bool = {{alias}}( '/beep/' )
true
> bool = {{alias}}( 'beep' )
false
> bool = {{alias}}( '' )
false
> bool = {{alias}}( null )
false
See Also
--------