Const
Casts a number to the NonPositiveFiniteNumber branded type.
number
NonPositiveFiniteNumber
Validates that the value is a non-positive finite number and returns it with the NonPositiveFiniteNumber brand. Throws a TypeError otherwise.
TypeError
The value as a NonPositiveFiniteNumber
If the value is not a non-positive finite number
Casts a
numberto theNonPositiveFiniteNumberbranded type.Validates that the value is a non-positive finite number and returns it with the
NonPositiveFiniteNumberbrand. Throws aTypeErrorotherwise.