MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / curry

Function curry

MathBox/mathbox-bundle.js:40464–40467  ·  view source on GitHub ↗

* Creates a function which accepts one or more arguments of `func` that when * invoked either executes `func` returning its result, if all `func` arguments * have been provided, or returns a function that accepts one or more of the * remaining `func` arguments, and so on. The arity of

(func, arity)

Source from the content-addressed store, hash-verified

40462 * // => 6
40463 */
40464 function curry(func, arity) {
40465 arity = typeof arity == 'number' ? arity : (+arity || func.length);
40466 return createWrapper(func, 4, null, null, null, arity);
40467 }
40468
40469 /**
40470 * Creates a function that will delay the execution of `func` until after

Callers

nothing calls this directly

Calls 1

createWrapperFunction · 0.85

Tested by

no test coverage detected