error: string|Error = 'input is not an optional number'
Returns assertsinputisnumber|undefined
Example
assertIsOptionalNumber(42); // does not throw assertIsOptionalNumber(undefined); // does not throw assertIsOptionalNumber('42'); // throws TypeError: input is not an optional number
Assert that
inputis a number orundefined.