7b46b047dda155b1dcd13a1a3d8805663c17f0a0
[dotfiles/.git] / partition.js
1 /** PURE_IMPORTS_START _util_not,_util_subscribeTo,_operators_filter,_Observable PURE_IMPORTS_END */
2 import { not } from '../util/not';
3 import { subscribeTo } from '../util/subscribeTo';
4 import { filter } from '../operators/filter';
5 import { Observable } from '../Observable';
6 export 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