wishthis/node_modules/rxjs/dist/esm/internal/operators/startWith.js

10 lines
411 B
JavaScript
Raw Normal View History

2022-04-07 07:06:43 +00:00
import { concat } from '../observable/concat';
import { popScheduler } from '../util/args';
import { operate } from '../util/lift';
export function startWith(...values) {
const scheduler = popScheduler(values);
return operate((source, subscriber) => {
(scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);
});
}
//# sourceMappingURL=startWith.js.map