Minimalna liczba JavaScript w tablicy
const min = arr => Math.min(...arr);
Batman
const min = arr => Math.min(...arr);
function minMax(arr) {
return [Math.min(...arr), Math.max(...arr)];
}