- max<V>(it, gt?): AsyncGenerator<V>
Parameters
- it: AsyncIterable<V>
Optional
gt: ((a: V, b: V) => boolean)- (a, b): boolean
Returns boolean
Returns AsyncGenerator<V>
- max<V>(it, gt?): Generator<V>
Parameters
- it: Iterable<V>
Optional
gt: ((a: V, b: V) => boolean)- (a, b): boolean
Returns boolean
Returns Generator<V>
Returns the maximum value of an iterable as it changes. Streaming result: works with endless iterables.
Param: it
Iterable
Param: gt
Should return true if
a
is greater thanb
.Returns
Iterable of maximum values