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 );

Type

Type of Reflect is Object .

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

Parent

Parent of Reflect is Object.prototype.

console.log( 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

JS Obj Reference

Reflect