Return the next document, or a completed iterator result at EOF.
Close the iterator after an early exit. Called automatically by
for...of; an optional value is accepted for iterator-protocol
compatibility and is ignored.
Optionalvalue: unknownExplicitly close the iterator. This method is idempotent.
Return this iterator.
A synchronous, forward-only iterator over a collection snapshot.
The iterator closes automatically when exhausted or when a
for...ofloop exits early. Call closeSync when abandoning an iterator that is consumed manually through next.Iteration order is unspecified. Once closed, all subsequent calls to next return an iterator result whose
doneproperty istrue.