• Given an AVL-tree anAvlTree, returns the value on its root node.

    Parameters

    • anAvlTree: AVLTree<any>

      the tree to consider

    Returns any

    the value at the root of the tree

    • if the tree is empty or not an AVL-tree