mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Reset resIndex after recursive baseFlatten.
This commit is contained in:
committed by
jdalton
parent
9c339367ad
commit
29e0d37009
@@ -2048,6 +2048,7 @@
|
||||
if (isDeep) {
|
||||
// Recursively flatten arrays (susceptible to call stack limits).
|
||||
baseFlatten(value, isDeep, isStrict, result);
|
||||
resIndex = result.length - 1;
|
||||
} else {
|
||||
var valIndex = -1,
|
||||
valLength = value.length;
|
||||
|
||||
Reference in New Issue
Block a user