js查找数组的最大值和最小值

const arr = [1, 2, 3]; 
Math.max(…arr); // 3
Math.min(…arr); // 1
原文地址:https://www.cnblogs.com/konglxblog/p/15757967.html