js获取数组中的最小值

获取数组最小值

  function getMin(qwe){
        return qwe.slice(0).sort(function(a,b){return a-b})[0];
    }

posted @ 2020-05-08 20:07  Cupid05  阅读(1193)  评论(0编辑  收藏  举报