wishthis/node_modules/rxjs/dist/esm5/internal/operators/startWith.js
2022-04-07 09:06:43 +02:00

14 lines
No EOL
521 B
JavaScript

import { concat } from '../observable/concat';
import { popScheduler } from '../util/args';
import { operate } from '../util/lift';
export function startWith() {
var values = [];
for (var _i = 0; _i < arguments.length; _i++) {
values[_i] = arguments[_i];
}
var scheduler = popScheduler(values);
return operate(function (source, subscriber) {
(scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);
});
}
//# sourceMappingURL=startWith.js.map