📅  最后修改于: 2022-03-11 15:03:08.688000             🧑  作者: Mango
// Assuming the array is all integers,
// Math.min works as long as you use the spread operator(...).
let arrayOfIntegers = [9, 4, 5, 6, 3];
let min = Math.min(...arrayOfIntegers);
// => 3