Asserts that a value is a valid finite number.
The value to check.
The name of the parameter/field being validated (for error reporting).
TypeError When the value is not a number or is NaN.
assertNumber(chatId, "chatId"); Copy
assertNumber(chatId, "chatId");
Asserts that a value is a valid finite number.