- followValue<T>(root, continuePredicate, depth?): IterableIterator<T | undefined>
Parameters
- root: TreeNode<T>
- continuePredicate: ((nodeValue: T, depth: number) => boolean)
- (nodeValue, depth): boolean
Parameters
- nodeValue: T
- depth: number
Returns boolean
- depth: number = 1
Returns IterableIterator<T | undefined>