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

max

Returns the maximum value in an observable sequence according to the specified comparer.

参数

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

返回值

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

Without comparer

With a comparer