Code coverage report for src/operator/partition.ts

Statements: 100% (5 / 5)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (4 / 4)      Ignored: none     

All files » src/operator/ » partition.ts
1 2 3 4 5 6 7 8 9 10 111 1     1 13          
import {not} from '../util/not';
import {filter} from './filter';
import {Observable} from '../Observable';
 
export function partition<T>(predicate: (x: any, i?: any, a?: any) => boolean, thisArg?: any): Observable<T>[] {
  return [
    filter.call(this, predicate),
    filter.call(this, not(predicate, thisArg))
  ];
}