Code coverage report for src/operator/ignoreElements.ts

Statements: 100% (14 / 14)      Branches: 100% (0 / 0)      Functions: 100% (5 / 5)      Lines: 100% (12 / 12)      Ignored: none     

All files » src/operator/ » ignoreElements.ts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  1 1   1 5     2 1 5   1   6 1 5   1  
import {Operator} from '../Operator';
import {Subscriber} from '../Subscriber';
import {noop} from '../util/noop';
 
export function ignoreElements() {
  return this.lift(new IgnoreElementsOperator());
};
 
class IgnoreElementsOperator<T, R> implements Operator<T, R> {
  call(subscriber: Subscriber<R>): Subscriber<T> {
    return new IgnoreElementsSubscriber(subscriber);
  }
}
 
class IgnoreElementsSubscriber<T> extends Subscriber<T> {
  _next(unused: T): void {
    noop();
  }
}