src code

instance method Enumerable#max

Enumerable#max([iterator = Prototype.K[, context]]) → maxValue

Returns the maximum element (or element-based computation), or undefined if the enumeration is empty. Elements are either compared directly, or by first applying the iterator and comparing returned values.