MCPcopy
hub / github.com/lodash/lodash / curry

Function curry

lodash.js:10297–10302  ·  view source on GitHub ↗

* 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, arity, guard)

Source from the content-addressed store, hash-verified

10295 * // => [1, 2, 3]
10296 */
10297 function curry(func, arity, guard) {
10298 arity = guard ? undefined : arity;
10299 var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
10300 result.placeholder = curry.placeholder;
10301 return result;
10302 }
10303
10304 /**
10305 * This method is like `_.curry` except that arguments are applied to `func`

Callers 3

baseConvertFunction · 0.85
castCurryFunction · 0.85
wrapFunction · 0.85

Calls 1

createWrapFunction · 0.85

Tested by

no test coverage detected