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.get() は静的メソッドで、プロパティアクセサー構文と同様に実装されていますが、関数として存在します。
プロパティを取得する対象のオブジェクト。
propertyKey設定するプロパティ名。
receiver 省略可ゲッターがあった場合、 target への呼び出しで使用する this の値を提供します。
プロパティの値です。
target がオブジェクトではなかった場合。
Reflect.get() はプロパティアクセサーの反射的意味づけを提供します。つまり、Reflect.get(target, propertyKey, receiver) は意味的に次のものと同等です:
通常のプロパティアクセスでは、target と receiver は明らかに同一のオブジェクトであることに注意してください。
Reflect.get() は、target の [[Get]] オブジェクト内部メソッド を呼び出します。
| ECMAScript® 2027 Language Specification # sec-reflect.get |
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.