find(nodes: Node[], predicate: (v: Node) => Node, notFound: Node): Node

Iterates over the node's list, returning the first element predicate returns true for. The predicate is invoked with the value argument.

find(values: Node[], predicate: (Node) => Node, notFound: Node) => Node