Documentation

isBranch

checks whether the node has any children

boolean isBranch(id id );

Parameters

id idID of the branch in question

Returns

boolean**true,** if the branch has at least one child. **false,** if there-re no childern

Example

tree.isBranch('branch1');

Back to top