Ensure the fp iteratee wrapper enforces arity for functions with a length of 0.

This commit is contained in:
John-David Dalton
2015-12-14 08:06:29 -08:00
parent 41985d8c1a
commit 0706af1543
2 changed files with 23 additions and 1 deletions

View File

@@ -102,7 +102,7 @@ function baseConvert(util, name, func) {
arity = arity > 2 ? (arity - 2) : 1;
func = iteratee(func);
var length = func.length;
return length <= arity ? func : baseAry(func, arity);
return (length && length <= arity) ? func : baseAry(func, arity);
};
},
'mixin': function(mixin) {