Skip to content

Commit 2078f8b

Browse files
authored
fix(reactivity): update iterator to check for completion instead of value presence (#13761)
1 parent abd5638 commit 2078f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reactivity/src/arrayInstrumentations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function iterator(
215215
iter._next = iter.next
216216
iter.next = () => {
217217
const result = iter._next()
218-
if (result.value) {
218+
if (!result.done) {
219219
result.value = wrapValue(result.value)
220220
}
221221
return result

0 commit comments

Comments
 (0)