- depthFirst<T>(root, children, include?): IterableIterator<T>
Parameters
- root: T
- children: ((node) => undefined | T[])
- (node): undefined | T[]
Returns undefined | T[]
- include: ((node) => boolean) = ...
- (node): boolean
Returns boolean
Returns IterableIterator<T>
Generator for depth first, pre-order tree traversal iteration.