Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

startWith.js 411B

12345678910111213
  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