How to Use the Number Object
Static methods
Number.isFinite()
-
Determine whether the passed value is a finite number.
Number.isInteger()
-
Determine whether the passed value is an integer.
Number.isNaN()
-
Determine whether the passed value is
NaN
. Number.isSafeInteger()
-
Determine whether the passed value is a safe integer (number between -(253 - 1) and 253 - 1).
Number.parseFloat()
-
This is the same as the global
parseFloat()
function. Number.parseInt()
-
This is the same as the global
parseInt()
function.