@hyperfrontend/immutable-api-utils/built-in-copy/numbernumber
Locked, prototype-pollution-resistant copies of the global Number static methods, constants, and the global numeric parsers.
References to Number.MAX_VALUE, Number.MIN_VALUE, Number.MAX_SAFE_INTEGER, Number.MIN_SAFE_INTEGER, Number.EPSILON, Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, Number.isFinite, Number.isInteger, Number.isNaN, Number.isSafeInteger, plus the global parseInt, parseFloat, isNaN, and isFinite, are captured at module-load time and frozen into a tamper-proof namespace. Effective only when imported before any untrusted code has had a chance to mutate the prototype chain.
API Reference
● Variables
(Safe copy) The difference between 1 and the smallest floating point number greater than 1.
(Safe copy) Global isFinite function (coerces to number first, less strict than Number.isFinite).
(Safe copy) Global isNaN function (coerces to number first, less strict than Number.isNaN).
(Safe copy) Determines whether the passed value is a finite number.
(Safe copy) Determines whether the passed value is an integer.
(Safe copy) Determines whether the passed value is NaN (Number method, stricter than global isNaN).
(Safe copy) Determines whether the passed value is a safe integer.
(Safe copy) The largest safe integer (2^53 - 1).
(Safe copy) The largest positive representable number.
(Safe copy) The smallest safe integer (-(2^53 - 1)).
(Safe copy) The smallest positive representable number.
(Safe copy) Negative infinity.
(Safe copy) Namespace object containing all Number utilities. Note: Importing this imports all methods in this namespace (no tree-shaking).
(Safe copy) Not-a-Number value.
(Safe copy) Parses a string and returns a floating point number.
(Safe copy) Parses a string and returns an integer.
(Safe copy) Positive infinity.