Checks if value is classified as an ArrayBuffer object — a fixed-length raw binary buffer. Typed-array views are different. Part of Lodash Lang since 4.3.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 _.isArrayBuffer. Start with this line.
Lodash
_.isArrayBuffer(value)
Call
What it does
_.isArrayBuffer(value)
Primary signature.
Prefer import isArrayBuffer from "lodash/isArrayBuffer" when you want a smaller bundle.
_.isArrayBuffer is a Lodash Lang helper (added in 4.3.0). It needs a runtime that provides ArrayBuffer (all modern browsers and Node). It runs anywhere Lodash 4.3+ runs — CDN/bundle in browsers and Node.js / Bun / Deno with npm install lodash.
✓ Stable · Lodash 4.3.0+
_.isArrayBuffer()
Available in [email protected]+ full builds and the lodash/isArrayBuffer modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.3.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
_.isArrayBufferLodash 4.3.0+
Bottom line: Safe for production once Lodash 4.3.0+ is on the page or in your bundle. Prefer import isArrayBuffer from "lodash/isArrayBuffer" for smaller builds. Native value instanceof ArrayBuffer is a close alternative in same-realm code.
Frequently Asked Questions
_.isArrayBuffer(value) returns true if value is classified as an ArrayBuffer object — a raw fixed-length binary buffer — otherwise false.
No. Typed arrays are views over an ArrayBuffer, not ArrayBuffers themselves. Use _.isTypedArray or ArrayBuffer.isView for views.
SharedArrayBuffer is a different built-in. _.isArrayBuffer does not treat it as a normal ArrayBuffer. Use a dedicated check when you need shared memory.
No. Lodash checks real ArrayBuffer instances, not duck-typed shapes.
In Node, Buffer is a separate type from ArrayBuffer. Use _.isBuffer (or Buffer.isBuffer) for Node buffers.
Use import isArrayBuffer from "lodash/isArrayBuffer" or require("lodash/isArrayBuffer") for tree-shaking friendly bundles. Full build: import _ from "lodash" then _.isArrayBuffer.