starry.iterator-to-iterable
v4.0.0
Published
Member of the starry suite—modular functions for iterable objects.
Downloads
8
Maintainers
Readme
Member of the starry suite—modular functions for iterable objects.
Status
Applies to the whole suite.
Usage
function iteratorToIterable<T = any>(
iterator: Iterator<T>
): IterableIterator<T>
Iterates through the remaining items of the specified Iterator
object as though it is an Iterable
object.
Parameters:
- iterator -
Iterator<T>
Returns: IterableIterator<T>