Returns the prototype chain of the given object.
Example:
class A {}class B extends A {}class C extends B {}const c = new C()getPrototypeChain(c) // [c, C.prototype, B.prototype, A.prototype, Object.prototype] Copy
class A {}class B extends A {}class C extends B {}const c = new C()getPrototypeChain(c) // [c, C.prototype, B.prototype, A.prototype, Object.prototype]
Returns the prototype chain of the given object.
Example: