Checks if value is array-like: not a function, and value.length is an integer from 0 through Number.MAX_SAFE_INTEGER. Part of Lodash Lang since 4.0.0 (stable — not deprecated).
Pass the value you want to inspect or convert. Read the return type carefully before you use the result.
Syntax
Call _.isArrayLike. Start with this line.
Lodash
_.isArrayLike(value)
Call
What it does
_.isArrayLike(value)
Primary signature.
Prefer import isArrayLike from "lodash/isArrayLike" when you want a smaller bundle.
String. Array-like yes; object-like no (primitive).
Shaped object. Both helpers return true.
Pick. Use isArrayLikeObject when strings should not count.
Pick. Use isArrayLike when strings and lists both count.
Compatibility
Browser & Runtime Support
_.isArrayLike is a Lodash Lang helper (added in 4.0.0). It runs anywhere Lodash 4.x runs — modern browsers (via CDN or bundle) and Node.js / Bun / Deno with npm install lodash.
✓ Stable · Lodash 4.0.0+
_.isArrayLike()
Available in [email protected] full builds and the lodash/isArrayLike modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.0.0+
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
_.isArrayLikeLodash 4.0.0+
Bottom line: Safe for production once Lodash 4.0.0+ is on the page or in your bundle. Prefer import isArrayLike from "lodash/isArrayLike" for smaller builds. There is no single native Array.isArrayLike — this helper fills that gap.
Frequently Asked Questions
_.isArrayLike(value) returns true if value is not a function and has a length that is an integer from 0 through Number.MAX_SAFE_INTEGER. That covers arrays, strings, Arguments, and many DOM collections.
No. isArray only accepts real Array instances. isArrayLike also accepts strings, Arguments, typed arrays, and plain objects with a valid length.
They expose a non-negative integer length and indexed code units, so collection helpers can iterate them like sequences.
Functions have a length meaning arity (parameter count). Treating every function as array-like would create surprising matches.
isArrayLikeObject also requires a non-primitive object — so strings pass isArrayLike but fail isArrayLikeObject.
Use import isArrayLike from "lodash/isArrayLike" or require("lodash/isArrayLike") for tree-shaking friendly bundles. Full build: import _ from "lodash" then _.isArrayLike.