JavaScript: Reflect

By Xah Lee. Date: . Last updated: .

New in JS2015.

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

console.log( window["Reflect"] === Reflect ); // true

Type

Type of Reflect is Object .

console.log( typeof Reflect === "object" ); // true

Parent

Parent of Reflect is Object.prototype .

console.log( Reflect.getPrototypeOf ( Reflect ) === Object.prototype); // true

Purpose

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

Reflect's methods typically:

Properties

JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Reflect