Function partial

  • Creates a function that invokes fn with partials prepended to the arguments it receives. Note: The given function will have this bound to undefined. If using this inside fn, consider bind instead.

    Returns

    Returns the new partially applied function

    Parameters

    • fn: Function<any>

      The function to bind.

    • Optional Rest ...args: any[]

      The arguments to apply to fn.

    Returns Function<ReturnType<typeof fn>>

Generated using TypeDoc