Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The Array.isArray() static method determines whether the passed value is an Array.
The value to be checked.
true if value is an Array; otherwise, false. false is always returned if value is a TypedArray instance.
Array.isArray() checks if the passed value is an Array. It performs a branded check, similar to the in operator, for a private field initialized by the Array() constructor.
It is a more robust alternative to instanceof Array because it avoids false positives and false negatives:
See the article "Determining with absolute accuracy whether or not a JavaScript object is an array" for more details.
When checking for Array instance, Array.isArray() is preferred over instanceof because it works across realms.
| ECMAScript® 2027 Language Specification # sec-array.isarray |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 10, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.