MCPcopy
hub / github.com/lodash/lodash / castCurry

Function castCurry

fp/_baseConvert.js:300–304  ·  view source on GitHub ↗

* Casts `func` to a curried function if needed. * * @private * @param {string} name The name of the function to inspect. * @param {Function} func The function to inspect. * @param {number} n The arity of `func`. * @returns {Function} Returns the cast function.

(name, func, n)

Source from the content-addressed store, hash-verified

298 * @returns {Function} Returns the cast function.
299 */
300 function castCurry(name, func, n) {
301 return (forceCurry || (config.curry && n > 1))
302 ? curry(func, n)
303 : func;
304 }
305
306 /**
307 * Casts `func` to a fixed arity function if needed.

Callers 1

wrapFunction · 0.85

Calls 1

curryFunction · 0.85

Tested by

no test coverage detected