1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 57x 57x 18x 39x 43x 43x | /** * @param {Node} node - CommonMark AST Node * @yields {Node} - the node's children */ export function *getChildren(node) { let child = node.firstChild; if (!child) { return; } do { yield child; child = child.next; } while (child); } |