JavaScript Number isFinite()
JavaScript Number isFinite()
The Number.isFinite() method is used to return true if a number is a finite number else it will return false. Some infinite numbers are:-
- Infinity
- -Infinity
- NaN
Syntax:-
Its syntax is:- Number.isFinite(value)
Return:-
Its return is:- true if the number is finite else false
Further Explanation:-
The isFinite() method is used to return true if a value is a finite number and it converts the value into a number before testing it.
Parameter | Description |
value | Required. The value to be tested. |