UNPKG

rxjs

Version:

Reactive Extensions for modern JavaScript

47 lines 1.63 kB
"use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.concat = exports.concatWith = void 0; var lift_1 = require("../util/lift"); var concatAll_1 = require("./concatAll"); var fromArray_1 = require("../observable/fromArray"); var args_1 = require("../util/args"); function concatWith() { var otherSources = []; for (var _i = 0; _i < arguments.length; _i++) { otherSources[_i] = arguments[_i]; } return concat.apply(void 0, __spread(otherSources)); } exports.concatWith = concatWith; function concat() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var scheduler = args_1.popScheduler(args); return lift_1.operate(function (source, subscriber) { concatAll_1.concatAll()(fromArray_1.internalFromArray(__spread([source], args), scheduler)).subscribe(subscriber); }); } exports.concat = concat; //# sourceMappingURL=concatWith.js.map