time-to-botec/js/node_modules/@stdlib/assert/is-empty-string/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

71 lines
1.2 KiB
Plaintext

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