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

Glossary Term

handler.has()

2 tags 1 category

The handler.has() method is a trap for the [[HasProperty]] object internal method, which is used by operations such as the in operator.

Return value: The has() method must return a Boolean indicating whether or not the property exists. Other values are coerced to booleans.

Parameters: The following parameters are passed to has() method. this is bound to the handler.

Parameters: target The target object. property A string or Symbol representing the property name.

Syntax example: new Proxy(target, {

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…