Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

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