Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2016.
The Reflect.has() static method is like the in operator, but as a function.
The target object in which to look for the property.
propertyKeyThe name of the property to check.
A Boolean indicating whether or not the target has the property.
Thrown if target is not an object.
Reflect.has() provides the reflective semantic of checking if a property is in an object. That is, Reflect.has(target, propertyKey) is semantically equivalent to:
Reflect.has() invokes the [[HasProperty]] object internal method of target.
Reflect.has returns true for any inherited properties, like the in operator:
| ECMAScript® 2027 Language Specification # sec-reflect.has |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 20, 2025 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.