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

Glossary Term

Reflect.getPrototypeOf()

2 tags 1 category

The Reflect.getPrototypeOf() static method is like Object.getPrototypeOf(). It returns the prototype of the specified object.

Reflect.getPrototypeOf() provides the reflective semantic of retrieving the prototype of an object. The only difference with Object.getPrototypeOf() is how non-object targets are handled. Reflect.getPrototypeOf() throws a TypeError if the target is not an object, while Object.getPrototypeOf() coerces it to an object.

Reflect.getPrototypeOf() invokes the [[GetPrototypeOf]] object internal method of target.

Return value: The prototype of the given object, which may be an object or null.

Parameters: target The target object of which to get the prototype.

Syntax example: Reflect.getPrototypeOf(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…