Update fp mapping with a test to catch potentially missed wrappers.

This commit is contained in:
John-David Dalton
2016-01-15 22:42:08 -08:00
parent fdea9a447f
commit f6c6de40f1
3 changed files with 57 additions and 27 deletions

View File

@@ -99,7 +99,10 @@ function baseConvert(util, name, func) {
var wrappers = {
'iteratee': function(iteratee) {
return function(func, arity) {
return function() {
var func = arguments[0],
arity = arguments[1];
arity = arity > 2 ? (arity - 2) : 1;
func = iteratee(func);
var length = func.length;