JS: Reflect

By Xah Lee. Date: . Last updated: .

New in JS2015.

What is the Keyword “Reflect”

Reflect is the value of the property key "Reflect" of the Global Object .

globalThis["Reflect"] === Reflect

Type

Type of Reflect is Object .

typeof Reflect === "object"

Parent

Parent of Reflect is Object.prototype.

Reflect.getPrototypeOf(Reflect) === Object.prototype

Purpose

The Reflect object is used as namespace for functions related to JavaScript the language.

Reflect's methods typically:

Properties

BUY ΣJS JavaScript in Depth