Rx.Observable.prototype.min([comparer])

</rx-marbles>

Returns the minimum element in an observable sequence according to the optional comparer else a default greater than less than check.

Arguments

  1. [comparer] (Function): Comparer used to compare elements.

Returns

(Observable): An observable sequence containing a single element with the minimum element in the source sequence.

Example

Without comparer

With a comparer