UNPKG

@nepwork/dashboards

Version:

Dashboards for emergencies and monitoring

11 lines (10 loc) 282 B
export default function(callback) { var node = this, nodes = [node], children, i; while (node = nodes.pop()) { callback(node), children = node.children; if (children) for (i = children.length - 1; i >= 0; --i) { nodes.push(children[i]); } } return this; }