Vinyl
    Preparing search index...

    Function getPrototypeChain

    • 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]

      Parameters

      • obj: any

      Returns any[]