Number.max
maxthat
Group: Math
Documentation
Returns the larger value of self and that.
Arguments
that: The number to compareselfagainst.
Examples
Find the maximum of 2 and 5.
2.max 5
Remarks
Math.max or Number.max
While we provide the max method on Number, we find it more intuitive to
write Math.max a b rather than a.max b. To that end, we recommend using
the first style.