diff --git a/src/utils/iterator.ts b/src/utils/iterator.ts index d5e39f9..04066a6 100644 --- a/src/utils/iterator.ts +++ b/src/utils/iterator.ts @@ -17,7 +17,7 @@ export function createIterator (array: any[]): Iterator { if (++this.index === this.length) this.done = true return iterator.next().value }, - done: false, + done: array.length === 0, index: 0, length: array.length }