mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Cleanup and comment _.merge's _.reduce support.
Former-commit-id: 2cfc41f1c00a7a3981c51be7e8005f0cc95ac692
This commit is contained in:
@@ -1630,10 +1630,14 @@
|
||||
stackA = args[3],
|
||||
stackB = args[4];
|
||||
|
||||
if (typeof indicator != 'number' && indicator !== indicatorObject) {
|
||||
if (indicator !== indicatorObject) {
|
||||
stackA = [];
|
||||
stackB = [];
|
||||
length = args.length;
|
||||
|
||||
// work with `_.reduce` by only using its callback `accumulator` and `value` arguments
|
||||
if (typeof indicator != 'number') {
|
||||
length = args.length;
|
||||
}
|
||||
}
|
||||
while (++index < length) {
|
||||
forOwn(args[index], function(source, key) {
|
||||
|
||||
Reference in New Issue
Block a user