From 69238bf8e80b061b0e91985dcd90462fb4fcd920 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 14 Jul 2014 07:57:46 -0700 Subject: [PATCH] Cleanup `_.max` and `_.min`. --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 2ae86117d..d484660ed 100644 --- a/lodash.js +++ b/lodash.js @@ -5001,7 +5001,7 @@ if (noIterator && !isStr) { var index = -1, - iterable = isArr ? collection : values(collection), + iterable = toIterable(collection), length = iterable.length; while (++index < length) { @@ -5084,7 +5084,7 @@ if (noIterator && !isStr) { var index = -1, - iterable = isArr ? collection : values(collection), + iterable = toIterable(collection), length = iterable.length; while (++index < length) {