Function curry

  • Creates a function that accepts arguments of func and either invokes func returning its result, if at least arity number of arguments have been provided, or returns a function that accepts the remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.

    Returns

    Returns the new curried function.

    Parameters

    • func: Function<any>

      The function to curry.

    Returns ((...args: any[]) => any)

      • (...args: any[]): any
      • Parameters

        • Rest ...args: any[]

        Returns any

Generated using TypeDoc