Returns the number of children of tree. Under the hood is just [ ...tree.children() ].length
tree
[ ...tree.children() ].length
Returns the number of children of
tree. Under the hood is just[ ...tree.children() ].length