max listens on this input observable and yields the element with the maximum value when the input is completed. When the input type is not a number, a custom comparer has to be passed to compare the values.
Required for non-number values.
Generated using TypeDoc
An Observable produces an asynchronous stream of values once iterated over or subscribed on. Observable methods operate on the asynchronous stream of values as they come by returning a new observable. Using this it's possible to create an asynchronous operator chain.
eg.
const myObservable = Observable.for(0, 100, 10).map(i => i += 5); myObservable.subscribe({next: console.log}); for await(const i of myObservable) { console.log(i); }