Applies predicate to root and all its child nodes, returning the node where predicate yields true. Use findByValue to find a node by its value
predicate
root
Iterate children by breadth or depth. Default 'breadth'
Applies
predicate
toroot
and all its child nodes, returning the node wherepredicate
yields true. Use findByValue to find a node by its value