Loading

ES6-计算对象数组中某个属性的最大值

let max = Math.max.apply(null, arr.map(item ⇒ item.value))
posted @ 2021-12-06 16:08  顾诚的城  阅读(636)  评论(0编辑  收藏  举报