Const
Casts a number to the NonNegativeFiniteNumber branded type.
number
NonNegativeFiniteNumber
Validates that the value is a non-negative finite number and returns it with the NonNegativeFiniteNumber brand. Throws a TypeError otherwise.
TypeError
The value as a NonNegativeFiniteNumber
If the value is not a non-negative finite number
Casts a
numberto theNonNegativeFiniteNumberbranded type.Validates that the value is a non-negative finite number and returns it with the
NonNegativeFiniteNumberbrand. Throws aTypeErrorotherwise.