JSFiddle - React, Tailwind, and code Playground
JavaScript
let numbers = [80, 300, 1500];
let min = Math.min(...numbers);
console.log(min); // 80
// Or
min = Math.min.apply(null, numbers);
console.log(min); // 80
let max = Math.max(...numbers);
console.log(max); // 80
// Or
max = Math.max.apply(null, numbers);
console.log(max); // 80