mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Fix _.reduce for modern and underscore builds.
This commit is contained in:
2
dist/lodash.underscore.js
vendored
2
dist/lodash.underscore.js
vendored
@@ -2548,7 +2548,7 @@
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number') {
|
||||
if (noaccum) {
|
||||
if (noaccum && length) {
|
||||
accumulator = collection[++index];
|
||||
}
|
||||
while (++index < length) {
|
||||
|
||||
Reference in New Issue
Block a user