Skip to main content
Version: 3.13.0

Object.getPrototypeOf()

The Object.getPrototypeOf() method returns the prototype (i.e. the value of the internal [[Prototype]] property) of the specified object.

Syntax

Object.getPrototypeOf(obj)

Parameters

  • obj
    • : The object whose prototype is to be returned.

Return value

The prototype of the given object, which may be null.