gradum-kit - v0.1.0
    Preparing search index...

    Function getPrototypeChain

    • Function

      getPrototypeChain

      Parameters

      • object: object

        The instance or class to walk.

      Returns any[]

      The chain from nearest to furthest, stopping before Function.prototype.

      List an object's prototype chain, nearest first. Passing a class lists the class and its ancestors; passing an instance starts at its prototype. Used to walk a hierarchy and merge each level's static defaults.