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

</rx-marbles>

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

Arguments

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

Returns

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

Example

Without comparer

With a comparer