replugged

    Function getBoundMethods

    • Creates a new object containing all methods from the prototype of the given instance, with each method bound to the original instance.

      Type Parameters

      • T extends object

        The type of the instance object

      Parameters

      • instance: T

        The object instance whose methods should be bound

      Returns BoundMethodMap<T>

      A new object containing all prototype methods bound to the original instance

    MMNEPVFCICPMFPCPTTAAATR