wishthis/node_modules/rxjs/dist/cjs/internal/operators/startWith.js
2022-06-08 12:36:39 +02:00

18 lines
No EOL
674 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.startWith = void 0;
var concat_1 = require("../observable/concat");
var args_1 = require("../util/args");
var lift_1 = require("../util/lift");
function startWith() {
var values = [];
for (var _i = 0; _i < arguments.length; _i++) {
values[_i] = arguments[_i];
}
var scheduler = args_1.popScheduler(values);
return lift_1.operate(function (source, subscriber) {
(scheduler ? concat_1.concat(values, source, scheduler) : concat_1.concat(values, source)).subscribe(subscriber);
});
}
exports.startWith = startWith;
//# sourceMappingURL=startWith.js.map