• Iterates over the children of root, breadth-first

    Other iteration options:

    Type Parameters

    Parameters

    • root: T

      Root node

    • depth: number = Number.MAX_SAFE_INTEGER

      How many levels to traverse

    Returns IterableIterator<T>