Const
Casts a number to the NegativeFiniteNumber branded type.
number
NegativeFiniteNumber
Validates that the value is a negative finite number and returns it with the NegativeFiniteNumber brand. Throws a TypeError otherwise.
TypeError
The value as a NegativeFiniteNumber
If the value is not a negative finite number
Casts a
numberto theNegativeFiniteNumberbranded type.Validates that the value is a negative finite number and returns it with the
NegativeFiniteNumberbrand. Throws aTypeErrorotherwise.