Extend (update) `number` validator
-
any
- any number -
numeric
- any number exceptNaN
-
finite
- any number exceptNaN
,Infinity
and-Infinity
-
integer
- any integer -
integer-safe
- any integer, whose absolute value is less thanNumber.MAX_SAFE_INTEGER
-
integer-even
- any even integer -
integer-even-safe
- safe even integer (seeinteger-safe
) -
integer-odd
- any odd integer -
integer-odd-safe
- safe odd integer -
non-integer
- any non-integer number -
non-integer-finite
- any non-integer finite number
Edited by Dmytro Parzhytskyi