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