UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

17 lines (16 loc) 716 B
import { Observable } from '../Observable'; /** * The Min operator operates on an Observable that emits numbers (or items that can be evaluated as numbers), * and when source Observable completes it emits a single item: the item with the smallest number. * * <img src="./img/min.png" width="100%"> * * @param {Function} optional comparer function that it will use instead of its default to compare the value of two items. * @return {Observable<R>} an Observable that emits item with the smallest number. * @method min * @owner Observable */ export declare function min<T>(comparer?: (x: T, y: T) => T): Observable<T>; export interface MinSignature<T> { (comparer?: (x: T, y: T) => T): Observable<T>; }