1 2 3 4 5 6 7 8 9 10 11 | 1 1 1 15 | import {not} from '../util/not'; import {filter} from './filter'; import {Observable} from '../Observable'; export function partition<T>(predicate: (value: T) => boolean, thisArg?: any): [Observable<T>, Observable<T>] { return [ filter.call(this, predicate), filter.call(this, not(predicate, thisArg)) ]; } |