@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
17 lines (15 loc) • 588 B
JavaScript
import { as } from '../as';
import { flatMap } from './flatmap';
/**
* Merges elements from all inner async-iterable sequences into a single async-iterable sequence.
*
* @export
* @template TSource The type of the elements in the source sequences.
* @returns {OperatorAsyncFunction<AsyncIterable<TSource>, TSource>} The async-iterable sequence that merges the elements of the inner sequences.
*/
export function mergeAll() {
return function mergeAllOperatorFunction(source) {
return as(source)['pipe'](flatMap((s) => s));
};
}
//# sourceMappingURL=mergeall.mjs.map