Const
Casts a number to the NonZeroInt16 branded type.
number
NonZeroInt16
Validates that the value is a non-zero integer in [-2^15, 2^15) and returns it with the NonZeroInt16 brand. Throws a TypeError otherwise.
TypeError
The value as a NonZeroInt16
If the value is not a non-zero integer in [-2^15, 2^15)
Casts a
numberto theNonZeroInt16branded type.Validates that the value is a non-zero integer in [-2^15, 2^15) and returns it with the
NonZeroInt16brand. Throws aTypeErrorotherwise.