time-to-botec/squiggle/node_modules/@stdlib/assert/is-empty-string/docs/repl.txt

71 lines
1.2 KiB
Plaintext
Raw Normal View History

{{alias}}( value )
Tests if a value is an empty string.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating if a value is an empty string.
Examples
--------
> var bool = {{alias}}( '' )
true
> bool = {{alias}}( new String( '' ) )
true
> bool = {{alias}}( 'beep' )
false
> bool = {{alias}}( [] )
false
{{alias}}.isPrimitive( value )
Tests if a value is an empty string primitive.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether value is an empty string primitive.
Examples
--------
> var bool = {{alias}}.isPrimitive( '' )
true
> bool = {{alias}}.isPrimitive( new String( '' ) )
false
{{alias}}.isObject( value )
Tests if a value is an empty `String` object.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether value is an empty `String` object.
Examples
--------
> var bool = {{alias}}.isObject( new String( '' ) )
true
> bool = {{alias}}.isObject( '' )
false
See Also
--------