English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
JavaScript Global Properties/Function
GlobalisFinite()The function determines whether the value passed is finite.
The isFinite function checks the number in the parameter. If the parameter is NaN, positive infinity, or negative infinity, this method returns false; otherwise, it returns true.
isFinite(value)
isFinite(451); // true isFinite(-3.13); // true isFinite(3-1); // true isFinite(0); // true isFinite("451"); // true isFinite("Hello"); // false isFinite("20/12/2018"); // falseTest and see‹/›
All browsers fully support the isFinite() function:
Function | |||||
isFinite() | Yes | Yes | Yes | Yes | Yes |
Parameter | Description |
---|---|
value | To test if the value is finite |
Return Value: | If the argument is positive infinity, negative infinity, or NaN, it returns false; otherwise, it returns true. |
---|---|
JavaScript Version: | ECMAScript 1 |