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.

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