Skip to Content

walk

walk(root: AnumaNode, visitor: (node: AnumaNode, parent: AnumaNode | null) => false | void): void

Defined in: src/tools/slides/jsx.ts:1017 

Walk the tree depth-first. Visitor sees (node, parent) — parent is null for the root. Return false from the visitor to skip descending into a node’s children.

Parameters

ParameterType

root

AnumaNode

visitor

(node: AnumaNode, parent: AnumaNode | null) => false | void

Returns

void

Last updated on