Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2016年9月.
Reflect.isExtensible() は静的メソッドで、これは Object.isExtensible() に似ています。これはオブジェクトが拡張可能であるか(オブジェクトに追加された新しいプロパティを持てるかどうか)を判断します。
拡張できるかどうかをチェックする対象のオブジェクト。
対象が拡張可能かどうかを示す論理値 (Boolean)。
target がオブジェクトではない場合に発生します。
Reflect.isExtensible() は、オブジェクトが拡張可能かどうかを調べる反射的な意味づけを提供します。Object.isExtensible() との唯一の違いは、オブジェクト以外の対象の処理方法です。Reflect.isExtensible() は対象がオブジェクトでない場合に TypeError を発生しますが、Object.isExtensible() はオブジェクト以外の対象に対して常に false を返します。
Reflect.isExtensible() は、target の [[IsExtensible]] オブジェクト内部メソッド を呼び出します。
Object.isExtensible() も参照してください。
このメソッドへの最初の引数がオブジェクトではなかった (プリミティブであった) 場合、これは TypeError を引き起こします。Object.isExtensible() だと、オブジェクトではない最初の引数はオブジェクトに強制的に変換されます。
| ECMAScript® 2027 Language Specification # sec-reflect.isextensible |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年3月5日 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.