@maizzle/framework
Version:
Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.
12 lines (11 loc) • 344 B
JavaScript
//#region src/utils/ast/walker.ts
function walk(ast, callback) {
function traverse(node) {
callback(node);
if ("children" in node && node.children && node.children.length > 0) for (const child of node.children) traverse(child);
}
for (const node of ast) traverse(node);
}
//#endregion
export { walk };
//# sourceMappingURL=walker.js.map