Debian Codegraph @

node/rxjs/dist/cjs/internal/operators/endWith.js

raw
1 "use strict";
2 var __read = (this && this.__read) || function (o, n) {
3 var m = typeof Symbol === "function" && o[Symbol.iterator];
4 if (!m) return o;
5 var i = m.call(o), r, ar = [], e;
6 try {
7 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
8 }
9 catch (error) { e = { error: error }; }
10 finally {
11 try {
12 if (r && !r.done && (m = i["return"])) m.call(i);
13 }
14 finally { if (e) throw e.error; }
15 }
16 return ar;
17 };
18 var __spreadArray = (this && this.__spreadArray) || function (to, from) {
19 for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
20 to[j] = from[i];
21 return to;
22 };
23 Object.defineProperty(exports, "__esModule", { value: true });
24 exports.endWith = void 0;
25 var concat_1 = require("../observable/concat");
26 var of_1 = require("../observable/of");
27 function endWith() {
28 var values = [];
29 for (var _i = 0; _i < arguments.length; _i++) {
30 values[_i] = arguments[_i];
31 }
32 return function (source) { return concat_1.concat(source, of_1.of.apply(void 0, __spreadArray([], __read(values)))); };
33 }
34 exports.endWith = endWith;
35 //# sourceMappingURL=endWith.js.map