diff --git a/src/index.ts b/src/index.ts index 8b4dc36..51a7e67 100644 --- a/src/index.ts +++ b/src/index.ts @@ -100,7 +100,7 @@ function visit( } else if (Array.isArray(value)) { - const _remove_count = remove_count; + const _remove_count = remove_count; remove_count = 0; for (let j = 0, k = 0; j < value.length; j += 1, k += 1) { if (value[j] !== null && typeof value[j].type === 'string') {