1 2 3 4 5 6 7 8 9 10 | 1 1 21 10012 21 | import {Observable} from '../../Observable'; import {ReduceOperator} from '../reduce-support'; export function min<T, R>(comparer?: (x: R, y: T) => R): Observable<R> { const min = (typeof comparer === 'function') ? comparer : (x, y) => x < y ? x : y; return this.lift(new ReduceOperator(min)); } |