Reset resIndex after recursive baseFlatten.

This commit is contained in:
Justin Ridgewell
2015-05-30 14:01:14 -04:00
committed by jdalton
parent 9c339367ad
commit 29e0d37009
2 changed files with 4 additions and 3 deletions

View File

@@ -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;