mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Bump to v3.7.0.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var isLength = require('./isLength'),
|
||||
var getLength = require('./getLength'),
|
||||
isLength = require('./isLength'),
|
||||
toObject = require('./toObject');
|
||||
|
||||
/**
|
||||
@@ -11,7 +12,7 @@ var isLength = require('./isLength'),
|
||||
*/
|
||||
function createBaseEach(eachFunc, fromRight) {
|
||||
return function(collection, iteratee) {
|
||||
var length = collection ? collection.length : 0;
|
||||
var length = collection ? getLength(collection) : 0;
|
||||
if (!isLength(length)) {
|
||||
return eachFunc(collection, iteratee);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user