startWith.js 411 B

12345678910
  1. import { concat } from '../observable/concat';
  2. import { popScheduler } from '../util/args';
  3. import { operate } from '../util/lift';
  4. export function startWith(...values) {
  5. const scheduler = popScheduler(values);
  6. return operate((source, subscriber) => {
  7. (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);
  8. });
  9. }
  10. //# sourceMappingURL=startWith.js.map