Last updated 4 years ago
Was this helpful?
const minMax = (arr) => [Math.min(...arr), Math.max(...arr)];