JavaScript: Object.getPrototypeOf
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