GeeksforGeeks
geeksforgeeks.org › javascript › javascript-isfinite-function
JavaScript isFinite() Function - GeeksforGeeks
June 11, 2026 - The JavaScript isFinite() function is used to check whether a number is a finite, legal number or not. It returns true for all the values except +infinity, -infinity, or NaN.
Python map() function
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
Enumerate() in Python
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
Read JSON file using Python
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
Adding New Column to Existing DataFrame in Pandas
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
GeeksforGeeks
geeksforgeeks.org › javascript-number-isfinite-method
JavaScript Number isFinite() Method - GeeksforGeeks
August 8, 2023 - The Number.isfinite() method in JavaScript is used to check whether the passed value is a finite number or not.
GeeksforGeeks
origin.geeksforgeeks.org › javascript › javascript-number-isfinite-method
JavaScript Number isFinite() Method - GeeksforGeeks
August 8, 2023 - Interview Prep · JS Tutorial · ... 8 Aug, 2023 · The Number.isfinite() method in JavaScript is used to check whether the passed value is a finite number or not....
GeeksforGeeks
geeksforgeeks.org › javascript › lodash-_-isfinite-method
Lodash _.isFinite() Method - GeeksforGeeks
September 4, 2024 - Lodash _.isFinite() method checks whether the given value is a primitive finite number or not and returns the corresponding boolean value. ... This method returns a Boolean value(Returns true if the given value is a finite number, else false).
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › isFinite
isFinite() - JavaScript - MDN Web Docs - Mozilla
July 8, 2025 - The isFinite() function determines whether a value is finite, first converting the value to a number if necessary. A finite number is one that's not NaN or ±Infinity. Because coercion inside the isFinite() function can be surprising, you may prefer to use Number.isFinite().
W3Schools
w3schools.com › jsref › jsref_isfinite.asp
JavaScript isFinite() Method
cssText getPropertyPriority() getPropertyValue() item() length parentRule removeProperty() setProperty() JS Conversion ... The isFinite() method returns true if a value is a finite number.
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Number › isFinite
Number.isFinite() - JavaScript - MDN Web Docs
July 10, 2025 - The Number.isFinite() static method determines whether the passed value is a finite number — that is, it checks that a given value is a number, and the number is neither positive Infinity, negative Infinity, nor NaN.
TutorialsPoint
tutorialspoint.com › javascript › javascript_number_isfinite_method.htm
JavaScript Number isFinite() Method
The JavaScript Number isFinite() method is a static method used to determine whether the passed value is a finite number or not. It checks that the given value is a number and returns a boolean value "true" if the passed value is a finite number ...
GitHub
github.com › mdn › content › blob › main › files › en-us › web › javascript › reference › global_objects › isfinite › index.md
content/files/en-us/web/javascript/reference/global_objects/isfinite/index.md at main · mdn/content
The **`isFinite()`** function determines whether a value is finite, first converting the value to a number if necessary. A finite number is one that's not {{jsxref("NaN")}} or ±{{jsxref("Infinity")}}. Because coercion inside the `isFinite()` ...
Author mdn
Programiz
programiz.com › javascript › library › built-in › isfinite
JavaScript isFinite()
The isFinite() function checks whether the passed value is a finite number.
Top answer 1 of 8
208
if (result == Number.POSITIVE_INFINITY || result == Number.NEGATIVE_INFINITY)
{
// ...
}
You could possibly use the isFinite function instead, depending on how you want to treat NaN. isFinite returns false if your number is POSITIVE_INFINITY, NEGATIVE_INFINITY or NaN.
if (isFinite(result))
{
// ...
}
2 of 8
20
In ES6, The Number.isFinite() method determines whether the passed value is a finite number.
Number.isFinite(Infinity); // false
Number.isFinite(NaN); // false
Number.isFinite(-Infinity); // false
Number.isFinite(0); // true
Number.isFinite(2e64); // true
Codecademy
codecademy.com › docs › javascript › number methods › .isfinite()
JavaScript | Number Methods | .isFinite() | Codecademy
October 13, 2021 - The above example passes an Infinity, a NaN, and an integer value, into the Number.isFinite() method to verify if each value is finite or not.
Reality Ripple
udn.realityripple.com › docs › Web › JavaScript › Reference › Global_Objects › isFinite
isFinite() - JavaScript - UDN Web Docs: MDN Backup
If the argument is NaN, positive infinity, or negative infinity, this method returns false; otherwise, it returns true. isFinite(Infinity); // false isFinite(NaN); // false isFinite(-Infinity); // false isFinite(0); // true isFinite(2e64); // true isFinite(910); // true isFinite(null); // true, would've been false with the // more robust Number.isFinite(null) isFinite('0'); // true, would've been false with the // more robust Number.isFinite("0")
Unibo
lia.disi.unibo.it › materiale › JS › developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › isFinite.html
isFinite() - JavaScript | MDN
If the argument is NaN, positive infinity, or negative infinity, this method returns false; otherwise, it returns true. isFinite(Infinity); // false isFinite(NaN); // false isFinite(-Infinity); // false isFinite(0); // true isFinite(2e64); // true isFinite("0"); // true, would've been false with the // more robust Number.isFinite("0")
W3Schools
w3schools.com › jsref › jsref_isfinite_number.asp
JavaScript Number.isFinite() Method
cssText getPropertyPriority() getPropertyValue() item() length parentRule removeProperty() setProperty() JS Conversion ... The Number.isFinite() method returns true if a number is a finite number.
Code.mu
code.mu › en › javascript › manual › lang › isFinite
The isFinite function - a number checking in JavaScript
The isFinite function checks if a parameter is a finite number (that is, not a string, array, etc., and not plus or minus infinity).
DEV Community
dev.to › kobbyowen › javascript-in-depth-isfinite-isnan-functions-cp6
JavaScript In Depth - isFinite & IsNaN Functions - DEV Community
November 1, 2021 - This behavior is so true that, ECMAScript documentation suggests that one of the reliable ways to check for NaN is the expression(x === x), which returns false only if x is a NaN. Mostly, to determine if a number is okay to be used in arithmetic operation without few surprises, you should find yourself using isFinite more than isNaN, since isFinite checks for NaN values and goes on to check for infinite values.
Educative
educative.io › answers › what-is-the-isfinite-method-in-javascript
What is the isFinite() method in JavaScript?
The isFinite method is used to check if the value passed to the function is a finite number or not.