Const
Casts a number to the NonZeroInt branded type.
number
NonZeroInt
Validates that the value is a non-zero integer and returns it with the NonZeroInt brand. Throws a TypeError otherwise.
TypeError
The value as a NonZeroInt
If the value is not a non-zero integer
Casts a
numberto theNonZeroIntbranded type.Validates that the value is a non-zero integer and returns it with the
NonZeroIntbrand. Throws aTypeErrorotherwise.