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.

combineLatest.js 623B

123456789101112131415
  1. import { isArray } from '../util/isArray';
  2. import { CombineLatestOperator } from '../observable/combineLatest';
  3. import { from } from '../observable/from';
  4. const none = {};
  5. export function combineLatest(...observables) {
  6. let project = null;
  7. if (typeof observables[observables.length - 1] === 'function') {
  8. project = observables.pop();
  9. }
  10. if (observables.length === 1 && isArray(observables[0])) {
  11. observables = observables[0].slice();
  12. }
  13. return (source) => source.lift.call(from([source, ...observables]), new CombineLatestOperator(project));
  14. }
  15. //# sourceMappingURL=combineLatest.js.map