Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
685 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var concat_1 = require("../observable/concat");
|
---|
4 | var isScheduler_1 = require("../util/isScheduler");
|
---|
5 | function startWith() {
|
---|
6 | var array = [];
|
---|
7 | for (var _i = 0; _i < arguments.length; _i++) {
|
---|
8 | array[_i] = arguments[_i];
|
---|
9 | }
|
---|
10 | var scheduler = array[array.length - 1];
|
---|
11 | if (isScheduler_1.isScheduler(scheduler)) {
|
---|
12 | array.pop();
|
---|
13 | return function (source) { return concat_1.concat(array, source, scheduler); };
|
---|
14 | }
|
---|
15 | else {
|
---|
16 | return function (source) { return concat_1.concat(array, source); };
|
---|
17 | }
|
---|
18 | }
|
---|
19 | exports.startWith = startWith;
|
---|
20 | //# sourceMappingURL=startWith.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.