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(); } } |