Returns true if value is undefined (official Underscore docs). Missing properties and the undefined primitive pass; null and other falsy values do not. Stable helper — not deprecated.
Pass the required arguments shown below. Underscore object helpers usually return a new value — check whether the source object is mutated.
Syntax
Call _.isUndefined. Start with this line.
Underscore
_.isUndefined(value)
Call
What it does
_.isUndefined(value)
Primary signature.
_.isUndefined(...)
Call with the arguments your case needs.
Load Underscore with import _ from "underscore" (or the UMD CDN build) so these helpers are available as _.
Library declarations
Underscore
_.isUndefined(value)
Parameters
Parameter
Description
value
Required. Value to test
Return Value
Return Value
Description
*
true or false
Underscore.js Examples
Example 1 — Official: Missing Variable
The docs check a property that does not exist on window.
Guard first. Only undefined gets the fallback label.
Present text."moe" is returned as-is.
Missing value.undefined becomes "(none)".
null stays null. Explicit empty is not treated as missing — convert it separately if needed.
Compatibility
Browser & Runtime Support
_.isUndefined ships with Underscore.js (1.x; available since 0.1.0). It runs anywhere Underscore runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install underscore.
✓ Stable · Underscore 1.x
_.isUndefined()
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
_.isUndefinedUnderscore 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
_.isUndefined(value) returns true only when the value is undefined. null, 0, empty strings, false, and objects all return false.
_.isUndefined(window.missingVariable) returns true. Reading a missing property yields undefined, so the helper reports that the value is missing.
value == null is true for both null and undefined. _.isUndefined(null) is false. Use isUndefined when you need the missing state only.
isNull matches the null primitive. isUndefined matches the undefined primitive. They never both return true for the same value.
The implementation is obj === void 0. void 0 always evaluates to the undefined primitive, even in old environments where the global undefined could be overwritten.
No. It is a stable Underscore helper from the original 0.1.0 release. Load Underscore 1.x and call _.isUndefined(value).