source: trip-planner-front/node_modules/rxjs/_esm5/internal/observable/partition.js@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 543 bytes
Line 
1/** PURE_IMPORTS_START _util_not,_util_subscribeTo,_operators_filter,_Observable PURE_IMPORTS_END */
2import { not } from '../util/not';
3import { subscribeTo } from '../util/subscribeTo';
4import { filter } from '../operators/filter';
5import { Observable } from '../Observable';
6export function partition(source, predicate, thisArg) {
7 return [
8 filter(predicate, thisArg)(new Observable(subscribeTo(source))),
9 filter(not(predicate, thisArg))(new Observable(subscribeTo(source)))
10 ];
11}
12//# sourceMappingURL=partition.js.map
Note: See TracBrowser for help on using the repository browser.