numberDomain
const numberDomain: IntervalDomain<number>;Defined in: interval-domains.ts:30
Real numbers on the EXTENDED line — CONTINUOUS (no next). ±Infinity are
real values, so a closed bracket on infinity is meaningful ([-Infinity,5]
includes -∞). Only NaN is rejected (not comparable). Bound to a class as
NumberInterval; also a handy base to spread into a custom domain.
Example
Section titled “Example”import { numberDomain, parseInterval } from "@xtandard/lib/interval";
numberDomain.compare(1, 2); // -1numberDomain.isValid?.(NaN); // falseparseInterval(numberDomain, "[-Infinity,0]").contains(-Infinity); // true