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

74 lines
1.3 KiB
Plaintext

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