time-to-botec/squiggle/node_modules/@stdlib/assert/is-boolean/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

69 lines
1.2 KiB
Plaintext

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