Skip to main content
cngx-src documentation

walkTree

Functionutils/tree

projects/utils/tree.ts

Description#

DFS visitor. visit is called once per node with the current depth.

Signature#

walkTree(nodes, visit)

Parameters#

@paramnodes
@paramvisit

Returns#

void