Home > rc-js-util > mathMin
Returns the smaller of the two parameters a
and b
.
Signature:
export declare function mathMin(a: number, b: number): number;
Parameter | Type | Description |
---|---|---|
a | number | |
b | number |
Returns:
number
NaN comparison will cause a debug error. Differs from Math.min by taking only 2 arguments, avoids overhead of handling variable number of arguments.
See mathMin().