Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Reflect.has()

2 tags 1 category

The Reflect.has() static method is like the in operator, but as a function.

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.

Return value: A Boolean indicating whether or not the target has the property.

Parameters: target The target object in which to look for the property. propertyKey The name of the property to check.

Syntax example: Reflect.has(target, propertyKey)

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…