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