JS: Reflect

By Xah Lee. Date: . Last updated: .

New in ES2015.

Reflect is the value of the property key "Reflect" of the global object. [JS: the Global Object]

console.log ( window.Reflect === Reflect ); // true


Type of Reflect is object.

[see JS: Value Types]

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


Parent of Reflect is Object.prototype. [see JS: Prototype and Inheritance] [see JS: Object.prototype]

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


The Reflect object is used as namespace to host a group of static functions.

Reflect's methods typically:

[see JS: Object Object]

[see JS: Function Object]


Like it? Help me by telling your friends. Or, Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.

Web Dev Tutorials