@s-libs/micro-dash
    Preparing search index...

    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.

      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: T1) => R

      Returns CurriedFunction1<T1, R>

    • 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: T1, ...more: any[]) => R
      • arity: 1

      Returns CurriedFunction1<T1, R>

    • 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
      • T2
      • R

      Parameters

      • func: (t1: T1, t2: T2) => R

      Returns CurriedFunction2<T1, T2, R>

    • 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
      • T2
      • R

      Parameters

      • func: (t1: T1, t2: T2, ...more: any[]) => R
      • arity: 2

      Returns CurriedFunction2<T1, T2, R>

    • 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
      • T2
      • T3
      • R

      Parameters

      • func: (t1: T1, t2: T2, t3: T3) => R

      Returns CurriedFunction3<T1, T2, T3, R>

    • 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
      • T2
      • T3
      • R

      Parameters

      • func: (t1: T1, t2: T2, t3: T3, ...more: any[]) => R
      • arity: 3

      Returns CurriedFunction3<T1, T2, T3, R>

    • 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
      • T2
      • T3
      • T4
      • R

      Parameters

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

    • 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
      • T2
      • T3
      • T4
      • R

      Parameters

      • func: (t1: T1, t2: T2, t3: T3, t4: T4, ...more: any[]) => R
      • arity: 4

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