_.isInteger is a Lodash Lang helper (since 4.0.0). It runs anywhere Lodash 4.x runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Behavior aligns with Number.isInteger.
✓ Stable · Lodash 4.0.0+
_.isInteger()
Available in [email protected] full builds and the lodash/isInteger modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.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
_.isIntegerLodash 4.0.0+
Bottom line: Safe for production once Lodash is loaded. Prefer import isInteger from "lodash/isInteger". Native Number.isInteger is a fine alternative when Lodash is not needed.
Frequently Asked Questions
_.isInteger(value) returns true if value is an integer primitive number. Based on Number.isInteger — no string coercion.
"3" is a string. Parse with Number("3") first if you need an integer check on form input.
Yes for everyday inputs. Lodash documents that this method is based on Number.isInteger.
MIN_VALUE is a tiny positive float, not a whole number — both Lodash and Number.isInteger reject it.
Yes. 3.0 is the same IEEE value as 3, so _.isInteger(3.0) is true.
Use import isInteger from "lodash/isInteger" or require("lodash/isInteger") for tree-shaking. Full build: import _ from "lodash" then _.isInteger.