extra-iterator
    Preparing search index...

    Type Alias FlattenedExtraIterator<T>

    FlattenedExtraIterator: T extends Iterable<infer U>
        ? FlattenedExtraIterator<U>
        : ExtraIterator<T>

    Utility type that flattens nested iterables into an ExtraIterator or non-iterable type parameter.

    Type Parameters

    • T

      The type of the values yielded by the original iterator.

    A new type that represents the flattened version of the original iterator. If T is an iterable, it will be recursively flattened; otherwise, it returns ExtraIterator<T>.

    FlattenedExtraIterator<number[][]>; // results in `ExtraIterator<number>`