time-to-botec/squiggle/node_modules/@stdlib/math/base/assert/is-nan/README.md
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

1.3 KiB

isnan

Test if a double-precision floating-point numeric value is NaN.

Usage

var isnan = require( '@stdlib/math/base/assert/is-nan' );

isnan( x )

Tests if a double-precision floating-point numeric value is NaN.

var bool = isnan( NaN );
// returns true

Examples

var isnan = require( '@stdlib/math/base/assert/is-nan' );

var bool = isnan( NaN );
// returns true

bool = isnan( 5.0 );
// returns false