Checks if value is object-like: not null and typeof result is "object". Part of Lodash Lang (stable — not deprecated). Note: functions fail here — use _.isObject when callables should pass.
Pass the value you want to inspect or convert. Read the return type carefully before you use the result.
Syntax
Call _.isObjectLike. Start with this line.
Lodash
_.isObjectLike(value)
Call
What it does
_.isObjectLike(value)
Primary signature.
Prefer import isObjectLike from "lodash/isObjectLike" when you want a smaller bundle.
Library declarations
Lodash
_.isObjectLike(value)
Parameters
Parameter
Description
value
Required. Value to check
Return Value
Return Value
Description
*
true if object-like, else false
Lodash Examples
Example 1 — Official: Objects, Arrays, Functions, null
typeof-object values pass; functions and null fail.
_.isObjectLike is a Lodash Lang helper available in 4.x (and earlier builds). It runs anywhere Lodash runs — modern browsers (via CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Native engines have typeof; Lodash adds the non-null guard so null does not pass.
✓ Stable · Lodash 4.x
_.isObjectLike()
Available in [email protected] full builds and the lodash/isObjectLike 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
_.isObjectLikeLodash 4.x
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import isObjectLike from "lodash/isObjectLike" for smaller builds. Equivalent to value != null && typeof value === "object".
Frequently Asked Questions
_.isObjectLike(value) returns true when value is not null and typeof value is "object". Arrays, dates, regexes, and boxed primitives pass; functions and null fail.
Functions have typeof "function", not "object". _.isObject allows functions; _.isObjectLike does not.
Yes. Arrays are ordinary objects with typeof "object".
Yes. Object(7) / new Number(7) still have typeof "object" even though they wrap a number.
No. isPlainObject requires a simple Object (or null) prototype. Many builtins that pass isObjectLike fail isPlainObject.
Use import isObjectLike from "lodash/isObjectLike" or require("lodash/isObjectLike") so bundlers can tree-shake unused Lodash code. Full build: import _ from "lodash" then _.isObjectLike.