You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
370 B

4 months ago
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.traverse = traverse;
function traverse(element, callback) {
callback(element);
if (element.children) {
element.children.forEach(function (child) {
if (child)
traverse(child, callback);
});
}
}
//# sourceMappingURL=traverse.js.map