mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Cleanup _.max and _.min.
This commit is contained in:
@@ -5001,7 +5001,7 @@
|
|||||||
|
|
||||||
if (noIterator && !isStr) {
|
if (noIterator && !isStr) {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
iterable = isArr ? collection : values(collection),
|
iterable = toIterable(collection),
|
||||||
length = iterable.length;
|
length = iterable.length;
|
||||||
|
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
@@ -5084,7 +5084,7 @@
|
|||||||
|
|
||||||
if (noIterator && !isStr) {
|
if (noIterator && !isStr) {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
iterable = isArr ? collection : values(collection),
|
iterable = toIterable(collection),
|
||||||
length = iterable.length;
|
length = iterable.length;
|
||||||
|
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user