Function distinctDocuments
distinctDocuments<T extends IRowData>( iterator: AsyncGenerator<T | T[], void, unknown>,): AsyncGenerator<T, void, unknown> Parameters
- iterator: AsyncGenerator<T | T[], void, unknown>
Returns AsyncGenerator<T, void, unknown>
- A promise that resolves to the flattened array of documents.
Resolves the documents from an async generator and distincts them.