API reference › @evolu/common › Type › nonNaN
const nonNaN: BrandFactory<"NonNaN", number, NonNaNError>;
Defined in: packages/common/src/Type.ts:6478
Number Brand requiring a value other than NaN.
Example
import { assertOk, Number, nonNaN } from "@evolu/common";
const NonNaN = nonNaN(Number);
assertOk(NonNaN.fromUnknown(Infinity), Infinity);