isNaN

Returns whether the receiver represents NaN.

import { Arith } from "@teakit/arith";

const x = Arith.from("NaN");
x.isNaN(); // true

const y = Arith.from("Infinity");
y.isNaN(); // false

Arith.from("1").isNaN(); // false

API Reference

Signature

isNaN(): boolean;

Parameters

ParameterTypeRequiredNotes
None--This method does not take parameters.

Returns

Returns a boolean.

Throws

  • Does not take user arguments; no argument validation is performed.

Agent Contract

FieldValue
Kindinstance method
Canonical nameisNaN
AliasesNone
Mutates receiverNo
Returnsboolean
Accepts (string, base) overloadNo
Configuration dependenciesNone
Related methodsisFinite, isInteger, isZero

Agent Notes

  • Use predicate methods instead of inspecting c, e, or s directly.
  • Import with import { Arith } from "@teakit/arith"; default imports are unsupported.
  • Use Arith.from(...) to create values. Do not generate new Arith(...) or Arith(...).
  • Use string inputs for exact decimal values, especially money-like values.
  • Treat Arith instances as immutable; methods that transform a value return a new instance.
  • Do not mutate internal fields such as c, e, s, or _isArith.