-
-
Notifications
You must be signed in to change notification settings - Fork 0
number negative infinity
Nicholas Berlette edited this page Jun 19, 2025
·
1 revision
function isNegativeInfinity(it: unknown): it is NegativeInfinity;| Name | Info |
|---|---|
it |
The value to check. |
true if the value is negative infinity, false otherwise.
Numbers
number negative infinity
import { isNegativeInfinity } from "@nick/is/number/infinity";
console.log(isNegativeInfinity(Infinity)); // false
console.log(isNegativeInfinity(-Infinity)); // true
console.log(isNegativeInfinity(1)); // false
console.log(isNegativeInfinity(-1)); // false
console.log(isNegativeInfinity(NaN)); // falseexport type NegativeInfinity = -Infinity;Special type representing negative infinity (Number.NEGATIVE_INFINITY).
Numbers
types number infinity negative