UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

24 lines (22 loc) 614 B
import { AsyncIterableX } from '../asynciterablex'; export class EndWithAsyncIterable extends AsyncIterableX { constructor(source, args) { super(); this._source = source; this._args = args; } async *[Symbol.asyncIterator]() { for await (const item of this._source) { yield item; } for (const x of this._args) { yield x; } } } export function endWith(...args) { return function endsWithOperatorFunction(source) { return new EndWithAsyncIterable(source, args); }; } //# sourceMappingURL=endwith.mjs.map