@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
24 lines (22 loc) • 581 B
JavaScript
import { IterableX } from '../iterablex';
export class StartWithIterable extends IterableX {
constructor(source, args) {
super();
this._source = source;
this._args = args;
}
*[Symbol.iterator]() {
for (const x of this._args) {
yield x;
}
for (const item of this._source) {
yield item;
}
}
}
export function startWith(...args) {
return function startWithOperatorFunction(source) {
return new StartWithIterable(source, args);
};
}
//# sourceMappingURL=startwith.mjs.map