@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.
26 lines • 678 B
JavaScript
/**
* @module Collection
*/
import { isIterable } from "../../../../collection/implementations/_shared.js";
import {} from "../../../../collection/contracts/_module-exports.js";
/**
* @internal
*/
export class CollapseIterable {
collection;
constructor(collection) {
this.collection = collection;
}
*[Symbol.iterator]() {
for (const item of this.collection) {
if (isIterable(item)) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
yield* item;
}
else {
yield item;
}
}
}
}
//# sourceMappingURL=collapse-iterable.js.map