• Given a tree aTree, returns a boolean telling if the tree is a leaf or not (i.e if it has no children). This function considers that aTree is effectively a tree.

    Parameters

    • aTree: TreeI<any>

      the tree to consider

    Returns boolean

    if the value is effectively a leaf with no children