exportconstunwrapStep = nodes => {
const outputNodes = [];
nodes.forEach(node => {
// we may want to just skip the original instead of using itif (node.children.length === 0) {
outputNodes.push(node);
} else {
outputNodes.push(...node.children);
}
});
return outputNodes;
};