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월.
Object.isExtensible() 메서드는 객체가 확장 가능한지(객체에 새 속성을 추가할 수 있는지 여부)를 결정합니다.
판별할 객체.
객체의 확장 가능 여부를 나타내는 Boolean.
객체는 기본으로 확장 가능입니다: 새로운 속성이 추가될 수 있고 (Object.prototype.__proto__ 속성을 지원하는 엔진에서는) 수정될 수 있습니다. 객체는 Object.preventExtensions(), Object.seal() 또는 Object.freeze()를 사용하여 확장 불가로 표시될 수 있습니다.
ES5에서, 이 메서드의 인수가 비객체(원시형)인 경우, 그러면 TypeError가 발생합니다. ES6에서, 비객체 인수는 확장 불가인 보통 객체처럼 다뤄집니다, 그저 false를 반환하는.
| ECMAScript® 2027 Language Specification # sec-object.isextensible |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 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.