JavaScript: Object.getPrototypeOf

By Xah Lee. Date: . Last updated: .
Object.getPrototypeOf( obj )
Return the parent of object obj. If obj is not a object, it is converted to object first. To not implicitly convert, use Reflect.getPrototypeOf.
console.log( 
 Object.getPrototypeOf ( {} ) === Object.prototype
); // true

[see Prototype and Inheritance]

JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Object Object

prototype