Javascript simple way to find array min/max

Slice 1

I discovered this on accident while answering a question on stackoverflow

Math.max(...[1, 2, 3]); // 3
Math.min(...[1, 2, 3]); // 1