Skip to content

ieeeBinaryIsNaN

ieeeBinaryIsNaN(value): value is IeeeBinaryNaN

Defined in: packages/math-numbers/src/ieee754/binary/ieee-binary-is-nan.ts:12

Whether value is a NaN.

Reads the discriminant rather than comparing, since the unpacked form names the case directly and x !== x has nothing to test here.

IeeeBinary

The value to test.

value is IeeeBinaryNaN

true for a NaN of any payload.