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.has() は静的メソッドで、in 演算子と似ていますが、関数として存在します。
プロパティを探す対象のオブジェクト。
propertyKeyチェックするプロパティ名。
対象がプロパティを持つかどうかを示す論理値 (Boolean)。
target がオブジェクトではない場合に発生します。
Reflect.has() は、オブジェクトにプロパティが存在するかどうかを調べる反射的意味づけを提供します。つまり、Reflect.has(target, propertyKey) は意味づけ的に次のものと同等です。
Reflect.has() は、target の [[HasProperty]] オブジェクト内部メソッド を呼び出します。
Reflect.has は継承されたプロパティについて true を返し、これは in 演算子と同様です。
| ECMAScript® 2027 Language Specification # sec-reflect.has |
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.