UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

18 lines (16 loc) 637 B
import { ConcatIterable } from '../concat'; /** * Concatenates all iterable sequences in the given sequences, as long as the previous iterable * sequence terminated successfully. * * @export * @template T The type of the elements in the sequences. * @param {...Iterable<T>[]} args The iterable sources. * @returns {AsyncIterableX<T>} An iterable sequence that contains the elements of each given sequence, in sequential order. */ export function concatWith(...args) { return function concatWithOperatorFunction(source) { return new ConcatIterable([source, ...args]); }; } //# sourceMappingURL=concatwith.mjs.map