• 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.

    Differences from lodash:

    • there is no "placeholder" functionality
    • it will return plain functions; they will not inherit the prototype of func

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 10,527 bytes
    • Micro-dash: 154 bytes

    Type Parameters

    • T1
    • R

    Parameters

    • func: ((t1) => R)
        • (t1): R
        • Parameters

          Returns R

    Returns CurriedFunction1<T1, R>

  • Type Parameters

    • T1
    • R

    Parameters

    • func: ((t1, ...more) => R)
        • (t1, ...more): R
        • Parameters

          • t1: T1
          • Rest ...more: any[]

          Returns R

    • arity: 1

    Returns CurriedFunction1<T1, R>

  • Type Parameters

    • T1
    • T2
    • R

    Parameters

    • func: ((t1, t2) => R)
        • (t1, t2): R
        • Parameters

          Returns R

    Returns CurriedFunction2<T1, T2, R>

  • Type Parameters

    • T1
    • T2
    • R

    Parameters

    • func: ((t1, t2, ...more) => R)
        • (t1, t2, ...more): R
        • Parameters

          • t1: T1
          • t2: T2
          • Rest ...more: any[]

          Returns R

    • arity: 2

    Returns CurriedFunction2<T1, T2, R>

  • Type Parameters

    • T1
    • T2
    • T3
    • R

    Parameters

    • func: ((t1, t2, t3) => R)
        • (t1, t2, t3): R
        • Parameters

          Returns R

    Returns CurriedFunction3<T1, T2, T3, R>

  • Type Parameters

    • T1
    • T2
    • T3
    • R

    Parameters

    • func: ((t1, t2, t3, ...more) => R)
        • (t1, t2, t3, ...more): R
        • Parameters

          • t1: T1
          • t2: T2
          • t3: T3
          • Rest ...more: any[]

          Returns R

    • arity: 3

    Returns CurriedFunction3<T1, T2, T3, R>

  • Type Parameters

    • T1
    • T2
    • T3
    • T4
    • R

    Parameters

    • func: ((t1, t2, t3, t4) => R)
        • (t1, t2, t3, t4): R
        • Parameters

          Returns R

    Returns CurriedFunction4<T1, T2, T3, T4, R>

  • Type Parameters

    • T1
    • T2
    • T3
    • T4
    • R

    Parameters

    • func: ((t1, t2, t3, t4, ...more) => R)
        • (t1, t2, t3, t4, ...more): R
        • Parameters

          • t1: T1
          • t2: T2
          • t3: T3
          • t4: T4
          • Rest ...more: any[]

          Returns R

    • arity: 4

    Returns CurriedFunction4<T1, T2, T3, T4, R>