8000 Make `iteraeeAry` pass thru non-functions. [closes #2007] · lodash/lodash@c94b148 · GitHub
[go: up one dir, main page]

Skip to content

Commit c94b148

Browse files
committed
Make iteraeeAry pass thru non-functions. [closes #2007]
1 parent 7b2274c commit c94b148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fp/_baseConvert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function baseConvert(util, name, func, options) {
113113

114114
var iterateeAry = function(func, n) {
115115
return overArg(func, function(func) {
116-
return baseAry(func, n);
116+
return typeof func == 'function' ? baseAry(func, n) : func;
117117
});
118118
};
119119

0 commit comments

Comments
 (0)
0