Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Array.isArray() 정적 메서드는 전달된 값이 Array인지 판단합니다.
확인할 값입니다.
value가 Array 이면 true, 그렇지 않으면 false를 반환합니다. value가 TypedArray 인스턴스라면 항상 false가 반환됩니다.
Array.isArray()는 전달된 값이 Array인지 확인합니다. 값의 프로토타입 체인을 확인하지 않으며, 값이 연결된 Array 생성자에도 의존하지 않습니다. 배열 리터럴 구문이나 Array 생성자를 사용하여 생성된 모든 값에 대해 true를 반환합니다. 따라서 Array 생성자의 신원이 달라 instanceof Array가 실패할 수 있는 교차 영역 객체와 함께 사용하는 것이 안전합니다.
자세한 내용은 "Determining with absolute accuracy whether or not a JavaScript object is an array"(JavaScript 객체가 배열인지 여부를 절대적인 정확도로 확인하기) 글을 참조하세요.
또한 Array.isArray()는 프로토타입 체인에 Array.prototype이 있지만 실제 배열이 아닌 객체를 거부합니다. instanceof Array는 이를 허용합니다.
Array 인스턴스를 확인할 때 Array.isArray()는 교차 영역에서 작동하기 때문에 instanceof보다 선호됩니다.
| ECMAScript® 2027 Language Specification # sec-array.isarray |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 10월 10일 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.