mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Make modern build pass unit tests again.
Former-commit-id: 6269bdbaa7cd96217568504921da097c2352cef8
This commit is contained in:
12
dist/lodash.js
vendored
12
dist/lodash.js
vendored
@@ -2516,10 +2516,10 @@
|
||||
var computed = -Infinity,
|
||||
result = computed;
|
||||
|
||||
var index = -1,
|
||||
length = collection ? collection.length : 0;
|
||||
if (!callback && isArray(collection)) {
|
||||
var index = -1,
|
||||
length = collection.length;
|
||||
|
||||
if (!callback && typeof length == 'number') {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
if (value > result) {
|
||||
@@ -2585,10 +2585,10 @@
|
||||
var computed = Infinity,
|
||||
result = computed;
|
||||
|
||||
var index = -1,
|
||||
length = collection ? collection.length : 0;
|
||||
if (!callback && isArray(collection)) {
|
||||
var index = -1,
|
||||
length = collection.length;
|
||||
|
||||
if (!callback && typeof length == 'number') {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
if (value < result) {
|
||||
|
||||
Reference in New Issue
Block a user