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

min

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

参数

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

返回值

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

Without comparer

With a comparer