All files util.js

100% Statements 6/6
100% Branches 2/2
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15          46x 46x 15x   31x 33x 33x      
/**
 * @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);
}