nodeTreeContains function

bool nodeTreeContains(
  1. Node rootNode,
  2. Node target
)

Returns true if rootNode contains target.

Implementation

bool nodeTreeContains(Node rootNode, Node target) {
  return nodeTreeContainsAny(rootNode, [target]);
}