Checks if value is an empty object, collection, map, or set. Array-likes and strings use length === 0; maps and sets use size === 0; objects need no own enumerable string keys. Since Lodash 0.1.0.
Pass the value you want to inspect or convert. Read the return type carefully before you use the result.
Syntax
Call _.isEmpty. Start with this line.
Lodash
_.isEmpty(value)
Call
What it does
_.isEmpty(value)
Primary signature.
Prefer import isEmpty from "lodash/isEmpty" when you want a smaller bundle.
_.isEmpty is a Lodash Lang helper (since 0.1.0). It runs anywhere Lodash 4.x runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Map/Set emptiness works wherever those built-ins exist.
✓ Stable · Lodash 0.1.0+
_.isEmpty()
Available in [email protected] full builds and the lodash/isEmpty 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
_.isEmptyLodash 0.1.0+
Bottom line: Safe for production once Lodash is loaded. Prefer import isEmpty from "lodash/isEmpty" for smaller builds.
Frequently Asked Questions
_.isEmpty(value) returns true if value is an empty object, collection, map, or set. Array-likes and strings use length === 0; maps/sets use size === 0; objects need no own enumerable string keys.
No. Emptiness is about structure (length, size, keys). Falsy is a JavaScript coercion rule. [] is truthy but empty; 0 is falsy and also empty for isEmpty.
Numbers and booleans are not collections in Lodash’s branching — they are treated as empty non-collections. Check typeof or _.isNumber / _.isBoolean if you need to exclude them.
No. " " has length 1, so _.isEmpty returns false. Trim first if you want blank-looking strings to count as empty.
Yes. Lodash checks size === 0 for Map and Set instances.
Use import isEmpty from "lodash/isEmpty" or require("lodash/isEmpty") for tree-shaking. Full build: import _ from "lodash" then _.isEmpty.