Get Minimum Method
The Get Minimum method returns the smaller of the values that the x argument and the y argument contain. If it cannot convert the value that the number argument contains to a number, then it returns the following value:
NaN
This method uses the same argument as the Math Maximum method. For more information, see Get Maximum Method.
Format
Math.min(x, y)