Function bind

  • Creates a function that invokes fn with the this binding of thisArg and partials as partially applied arguments.

    Returns

    Returns the new bound function.

    See

    partial

    Parameters

    • fn: Function<any>

      The function to bind.

    • thisArg: any

      The this value of fn.

    • Optional Rest ...partials: any[]

      The arguments to prepend to fn.

    Returns any

Generated using TypeDoc