How is the ...val is functioning inside the Math.min function?
...val
Math.min
const array = [1, 2, 34, 5, 4, 3, 5, 4, 6, 6, 8, 4, 0] const fun = (val) => { return Math.min(...val) } console.log(fun(array))