js获取数组中的最小值
获取数组最小值
function getMin(qwe){
return qwe.slice(0).sort(function(a,b){return a-b})[0];
}
请用今天的努力,让明天没有遗憾。
function getMin(qwe){
return qwe.slice(0).sort(function(a,b){return a-b})[0];
}