_.isFinite ships with Underscore.js (1.x). It runs anywhere Underscore runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install underscore.
✓ Stable · Underscore 1.x
_.isFinite()
Available in [email protected] (UMD / ESM). Works in evergreen browsers and current Node LTS when Underscore is loaded.
100%With Underscore 1.x
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.isFiniteUnderscore 1.x+
Bottom line: Safe for production once Underscore is on the page or in your bundle. Not a native browser API — load Underscore first. Prefer a pinned CDN version (e.g. [email protected]).
Frequently Asked Questions
_.isFinite(object) returns true when the value is a finite number — integers, floats, 0, negatives, boxed new Number() objects, and numeric strings such as "12". Infinity, -Infinity, NaN, null, and empty strings return false.
_.isFinite(-101) returns true. _.isFinite(-Infinity) returns false. That pair shows the helper’s job: keep real finite values, reject infinities.
isNumber is a type check and includes NaN and Infinity. isFinite asks whether the value is finite. NaN and Infinity pass isNumber and fail isFinite. Numeric strings such as "12" fail isNumber and pass isFinite.
Both reject Infinity and NaN. Native isFinite(null) is true because null coerces to 0. Underscore also requires parseFloat(obj) not to be NaN, so null and "" fail. Numeric strings such as "12" still pass both.
Yes. Underscore’s tests say numeric strings are numbers: _.isFinite("12") is true. Non-numeric strings such as "1a" and empty "" are false.
No. It is a stable Underscore 1.x helper used to decide whether a value is a finite number before you do arithmetic.