@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
24 lines (22 loc) • 572 B
JavaScript
import { IterableX } from '../iterablex';
export class EndWithIterable extends IterableX {
constructor(source, args) {
super();
this._source = source;
this._args = args;
}
*[Symbol.iterator]() {
for (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 EndWithIterable(source, args);
};
}
//# sourceMappingURL=endwith.mjs.map