@arcmantle/library
    Preparing search index...

    Function bind

    • Binds a function to a specific caller object, caching the bound function for reuse.

      Multiple calls with the same function and caller will return the same bound function.

      Type Parameters

      • Func extends Fn

      Parameters

      • fn: Func

        The function to bind.

      • caller: object

        The object to bind the function to.

      Returns Func

      The bound function.