Checks if value is exactly null. Part of Lodash Lang (stable — not deprecated). Note: same as value === null — undefined 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 _.isNull. Start with this line.
Lodash
_.isNull(value)
Call
What it does
_.isNull(value)
Primary signature.
Prefer import isNull from "lodash/isNull" when you want a smaller bundle.
Why isNull. Collapsing both with isNil would lose that distinction.
Compatibility
Browser & Runtime Support
_.isNull is a Lodash Lang helper available in 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 === null, but not this helper by name.
✓ Stable · Lodash 4.x
_.isNull()
Available in [email protected] full builds and the lodash/isNull 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
_.isNullLodash 4.x
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import isNull from "lodash/isNull" for smaller builds. Equivalent to value === null as a named function.
Frequently Asked Questions
_.isNull(value) returns true only when value is the null primitive. undefined, 0, "", false, and NaN all return false.
No. Only exact null matches. undefined is a separate missing sentinel — use _.isUndefined or _.isNil for that.
Use _.isNull when only explicit null matters. Use _.isNil when either null or undefined should take the same branch.
Yes. Loose equality groups null and undefined together. _.isNull is strict — like value === null — and excludes undefined.
No. That creates an ordinary object whose prototype is null. The value itself is still an object, not the null primitive.
Use import isNull from "lodash/isNull" or require("lodash/isNull") so bundlers can tree-shake unused Lodash code. Full build: import _ from "lodash" then _.isNull.