Finds the root under which a node resides. Note that in cases where an undefined result is useless, you should use getRoot instead.
The node whose root we want.
The root object, or undefined if the root can't be found.
undefined
Gets the root under which a node resides.
{Error} If the root cannot be found.
The root node.
Generated using TypeDoc
Finds the root under which a node resides. Note that in cases where an undefined result is useless, you should use getRoot instead.