@stdlib/assert
Version:
Standard assertion utilities.
29 lines (22 loc) • 484 B
Plain Text
{{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
--------