wishthis/node_modules/rxjs/_esm2015/internal/observable/partition.js
2022-05-29 11:24:36 +02:00

11 lines
No EOL
441 B
JavaScript

import { not } from '../util/not';
import { subscribeTo } from '../util/subscribeTo';
import { filter } from '../operators/filter';
import { Observable } from '../Observable';
export function partition(source, predicate, thisArg) {
return [
filter(predicate, thisArg)(new Observable(subscribeTo(source))),
filter(not(predicate, thisArg))(new Observable(subscribeTo(source)))
];
}
//# sourceMappingURL=partition.js.map