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.
Returns
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>.
Example
FlattenedExtraIterator<number[][]>; // results in `ExtraIterator<number>`
Utility type that flattens nested iterables into an
ExtraIteratoror non-iterable type parameter.