Remove guard params.

This commit is contained in:
John-David Dalton
2017-03-05 02:37:18 -08:00
parent 89829331f0
commit bda6d56c60
14 changed files with 22 additions and 41 deletions

View File

@@ -19,7 +19,6 @@ const WRAP_CURRY_FLAG = 8
* @category Function
* @param {Function} func The function to curry.
* @param {number} [arity=func.length] The arity of `func`.
* @param- {Object} [guard] Enables use as an iteratee for methods like `map`.
* @returns {Function} Returns the new curried function.
* @example
*
@@ -42,8 +41,7 @@ const WRAP_CURRY_FLAG = 8
* curried(1)(_, 3)(2)
* // => [1, 2, 3]
*/
function curry(func, arity, guard) {
arity = guard ? undefined : arity
function curry(func, arity) {
const result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity)
result.placeholder = curry.placeholder
return result