UNPKG

@virtualstate/examples

Version:
11 lines 273 B
export async function* read(node) { if (!node.children) return; for await (const children of node.children) { yield* children; for (const child of children) { yield* read(child); } } } //# sourceMappingURL=read.js.map