- Preparing search index...
- The search index is not available
itr8
- chain<TIn>(secondIterator: Iterator<TIn, any, undefined> | AsyncIterator<TIn, any, undefined>): ((firstIterator: Iterator<TIn, any, undefined> | AsyncIterator<TIn, any, undefined>) => IterableIterator<TIn> | AsyncIterableIterator<TIn>)
-
Parameters
-
secondIterator: Iterator<TIn, any, undefined> | AsyncIterator<TIn, any, undefined>
Returns ((firstIterator: Iterator<TIn, any, undefined> | AsyncIterator<TIn, any, undefined>) => IterableIterator<TIn> | AsyncIterableIterator<TIn>)
-
- (firstIterator: Iterator<TIn, any, undefined> | AsyncIterator<TIn, any, undefined>): IterableIterator<TIn> | AsyncIterableIterator<TIn>
-
Parameters
-
firstIterator: Iterator<TIn, any, undefined> | AsyncIterator<TIn, any, undefined>
Returns IterableIterator<TIn> | AsyncIterableIterator<TIn>
Chain the argument iterator after the incoming iterator.
It will also work when one iterator is synchronous and the other one is asynchronous!
Example
Returns
An iterator that yields all values from the first iterator, then all values from the second iterator