mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Small change to _.max.
Former-commit-id: ee7a5a78087ce8a92b06b7cd542903433053e649
This commit is contained in:
@@ -1278,7 +1278,7 @@
|
|||||||
}
|
}
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
current = callback ? callback(array[index], index, array) : array[index];
|
current = callback ? callback(array[index], index, array) : array[index];
|
||||||
if (current >= computed) {
|
if (current > computed) {
|
||||||
computed = current;
|
computed = current;
|
||||||
result = array[index];
|
result = array[index];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user