code: function walkNodesHelper(astArray, f) {
    (astArray || []).forEach(node => {
      let children = getChildren(node);
      if (children.length > 0) {
        walkNodesHelper(children, f);
      }
      f(node);
    });
  }
docs: Helper function for walkNodes