isBranch

checks whether the node has any children

boolean isBranch(id id);

Parameters

ididID of the branch in question

Returns

booleantrue, if the branch has at least one child, false, if there are no children

Example

fmanager.isBranch('folderId'); // true
fmanager.isBranch('fileId'); // false

Back to top