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