source: trip-planner-front/node_modules/rxjs/_esm2015/internal/operators/startWith.js

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: 411 bytes
Line 
1import { concat } from '../observable/concat';
2import { isScheduler } from '../util/isScheduler';
3export 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.