Grouping.maxBy Method

Returns the first element which contains the maximum value in a sequence of (possibly null) values.
 

Parameters

selector

Type: Function
A transform function to apply to each element.

Return Value


Type: Object - May be null
The first element that contains the maximum value in the sequence.