mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Make iteraeeAry pass thru non-functions. [closes #2007]
This commit is contained in:
@@ -113,7 +113,7 @@ function baseConvert(util, name, func, options) {
|
|||||||
|
|
||||||
var iterateeAry = function(func, n) {
|
var iterateeAry = function(func, n) {
|
||||||
return overArg(func, function(func) {
|
return overArg(func, function(func) {
|
||||||
return baseAry(func, n);
|
return typeof func == 'function' ? baseAry(func, n) : func;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user