Const
Casts a number to the NonZeroFiniteNumber branded type.
number
NonZeroFiniteNumber
Validates that the value is a non-zero finite number and returns it with the NonZeroFiniteNumber brand. Throws a TypeError otherwise.
TypeError
The value as a NonZeroFiniteNumber
If the value is not a non-zero finite number
Casts a
numberto theNonZeroFiniteNumberbranded type.Validates that the value is a non-zero finite number and returns it with the
NonZeroFiniteNumberbrand. Throws aTypeErrorotherwise.