Narrows an unknown value to a number if it is type-compatible, or raises an error otherwise.
unknown
number
The value to test.
Optional
The error message to use if value is not type-compatible.
value
UnexpectedValueTypeError If the value was undefined.
Narrows an
unknown
value to anumber
if it is type-compatible, or raises an error otherwise.