Const
Casts a number to the PositiveFiniteNumber branded type.
number
PositiveFiniteNumber
Validates that the value is a positive finite number and returns it with the PositiveFiniteNumber brand. Throws a TypeError otherwise.
TypeError
The value as a PositiveFiniteNumber
If the value is not a positive finite number
Casts a
numberto thePositiveFiniteNumberbranded type.Validates that the value is a positive finite number and returns it with the
PositiveFiniteNumberbrand. Throws aTypeErrorotherwise.