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