isBranch

checks whether the node has any children

boolean isBranch(id id);
ididID of the branch in question
booleantrue, if the branch has at least one child, false, if there are no children

Example

tree.isBranch('branch1');

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.