Checks if value is undefined. Part of Lodash Lang (stable since 0.1.0 — not deprecated). Note: same as value === undefined — null returns false. Use _.isNil when both should match.
Pass the value you want to inspect or convert. Read the return type carefully before you use the result.
Syntax
Call _.isUndefined. Start with this line.
Lodash
_.isUndefined(value)
Call
What it does
_.isUndefined(value)
Primary signature.
Prefer import isUndefined from "lodash/isUndefined" when you want a smaller bundle.
Why isUndefined. Collapsing both with isNil would lose that distinction.
Compatibility
Browser & Runtime Support
_.isUndefined has shipped since 0.1.0 and is available in Lodash 4.x (and earlier 3.x builds). It runs anywhere Lodash runs — modern browsers (via CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Native engines express the same idea with value === undefined, but not this helper by name.
✓ Stable · Lodash 4.x
_.isUndefined()
Available in [email protected] full builds and the lodash/isUndefined 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
_.isUndefinedLodash 4.x
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import isUndefined from "lodash/isUndefined" for smaller builds. Equivalent to value === undefined as a named function.
Frequently Asked Questions
_.isUndefined(value) returns true only when value is the undefined primitive. null, 0, "", false, and NaN all return false.
No. Only exact undefined matches. null is a separate sentinel — use _.isNull or _.isNil for that.
Use _.isUndefined when only the missing/unset case matters. Use _.isNil when either null or undefined should take the same branch.
Yes. Lodash implements it as value === undefined — a named helper for readability next to other lang guards.
Yes. void 0 evaluates to undefined, matching the official Lodash example.
Use import isUndefined from "lodash/isUndefined" or require("lodash/isUndefined") so bundlers can tree-shake unused Lodash code. Full build: import _ from "lodash" then _.isUndefined.