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

partition.js 441B

1234567891011
  1. import { not } from '../util/not';
  2. import { subscribeTo } from '../util/subscribeTo';
  3. import { filter } from '../operators/filter';
  4. import { Observable } from '../Observable';
  5. export function partition(source, predicate, thisArg) {
  6. return [
  7. filter(predicate, thisArg)(new Observable(subscribeTo(source))),
  8. filter(not(predicate, thisArg))(new Observable(subscribeTo(source)))
  9. ];
  10. }
  11. //# sourceMappingURL=partition.js.map