diff --git a/lodash.src.js b/lodash.src.js index 2d39b359f..5799da8ef 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -3470,8 +3470,9 @@ : callback(iteratee, thisArg, 3); if (noIteratee || (isArr && iteratee.length == 1)) { - var result = arrayExtremum(isArr ? collection : toIterable(collection), iteratee, comparator, exValue); - if (noIteratee || !(length && result === exValue)) { + collection = isArr ? collection : toIterable(collection); + var result = arrayExtremum(collection, iteratee, comparator, exValue); + if (noIteratee || !(collection.length && result === exValue)) { return result; } }