摘要: 根据MDN官方的定义:可以使用reduce: const a = Array(100).fill(Math.random()); let max = a.reduce( (a,b)=>{ return Math.max(a,b)}) 或者使用速度更快的一种方法: let max = Math.max 阅读全文
posted @ 2021-10-17 23:34 Bravo_Jack 阅读(270) 评论(0) 推荐(0)