UNPKG

@virtualstate/examples

Version:
46 lines 808 B
import { h } from "@virtualstate/fringe"; function A() { return h("a", null, this.a); } function B() { return h("b", null, this.b); } function C() { return h("c", null, this.c); } function CK() { return h("c", null, this.c); } function D() { return h("d", null, this.d); } export const domain = [ A, B, C, // CK, D ]; function join(...containers) { return async function () { const that = this; const results = await Promise.all(containers.map(container => container.call(that))); return results.reduce((map, result) => Object.assign(map, result), {}); }; } const z = { a: 1 }; const z1 = { d: 4, a: 1, b: 2, c: 3 }; export const input = { a: 1, b: 2, c: 3, d: 4 }; //# sourceMappingURL=typing.js.map