@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.
21 lines • 461 B
JavaScript
/**
* @module Collection
*/
import {} from "../../../../utilities/_module-exports.js";
/**
* @internal
*/
export class AsyncEntriesIterable {
iterable;
constructor(iterable) {
this.iterable = iterable;
}
async *[Symbol.asyncIterator]() {
let index = 0;
for await (const item of this.iterable) {
yield [index, item];
index++;
}
}
}
//# sourceMappingURL=async-entries-iterable.js.map