Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
631 bytes
|
Line | |
---|
1 | /** PURE_IMPORTS_START _observable_concat,_util_isScheduler PURE_IMPORTS_END */
|
---|
2 | import { concat } from '../observable/concat';
|
---|
3 | import { isScheduler } from '../util/isScheduler';
|
---|
4 | export function startWith() {
|
---|
5 | var array = [];
|
---|
6 | for (var _i = 0; _i < arguments.length; _i++) {
|
---|
7 | array[_i] = arguments[_i];
|
---|
8 | }
|
---|
9 | var scheduler = array[array.length - 1];
|
---|
10 | if (isScheduler(scheduler)) {
|
---|
11 | array.pop();
|
---|
12 | return function (source) { return concat(array, source, scheduler); };
|
---|
13 | }
|
---|
14 | else {
|
---|
15 | return function (source) { return concat(array, source); };
|
---|
16 | }
|
---|
17 | }
|
---|
18 | //# sourceMappingURL=startWith.js.map
|
---|
Note:
See
TracBrowser
for help on using the repository browser.