source: trip-planner-front/node_modules/rxjs/_esm2015/internal/observable/partition.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 441 bytes
Line 
1import { not } from '../util/not';
2import { subscribeTo } from '../util/subscribeTo';
3import { filter } from '../operators/filter';
4import { Observable } from '../Observable';
5export 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
Note: See TracBrowser for help on using the repository browser.