UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

27 lines 687 B
/** * @module Collection */ import { isIterable } from "../../../../collection/implementations/_shared.js"; import {} from "../../../../utilities/_module-exports.js"; /** * @internal */ export class AsyncMergeIterable { iterables; constructor(iterables) { this.iterables = iterables; } async *[Symbol.asyncIterator]() { if (isIterable(this.iterables)) { for (const iterable of this.iterables) { yield* iterable; } } else { for await (const iterable of this.iterables) { yield* iterable; } } } } //# sourceMappingURL=async-merge-iterable.js.map