@virtualstate/examples
Version:
30 lines • 705 B
JavaScript
import { h } from "@virtualstate/fringe";
import { union } from "@virtualstate/union";
async function* Horse() {
yield "🐴";
yield "💪";
}
async function* Bird() {
yield "🐦";
yield "❤️";
}
async function* Robot() {
yield "🤖";
yield "🤳";
}
async function* Component() {
for await (const [horse, bird, robot] of union([
Horse(),
Bird(),
Robot()
])) {
console.log({ horse, bird, robot });
yield [horse, bird, robot];
}
}
export const _804_IterableUnion = (h(Component, null));
export const _804_URL = import.meta.url;
export const _804_Info = {
producesOutput: true
};
//# sourceMappingURL=iterable-union.js.map