is_number
is_number(input: any): boolean
param input
- Anything to test if it is of type number
or not
returns: - boolean
- true
if it is a number
, false
otherwise. Infinity
and NaN
are defined to not be numbers in Hedgehog Lab. You can use hex and binary inputs as numbers - 0xff10 etc.
This function tests if the input is a number or not. It does not allow strings, infinity, NaN. It also checks type.