pub fn min(x: f64, y: f64) -> f64
The static function Math.min() returns the lowest-valued number passed into it.
Math.min()
MDN documentation