问题:
How can I easily obtain the min or max element of a JavaScript Array? 如何轻松获得JavaScript数组的min或max元素?
Example Psuedocode: 伪代码示例:
let array = [100, 0, 50]
array.min() //=> 0
array.max() //=> 100
解决方案:
参考一: https://stackoom.com/question/70EQ/在JavaScript中找到数组的最小-最大元素参考二: https://oldbug.net/q/70EQ/Find-the-min-max-element-of-an-Array-in-JavaScript
来源:oschina
链接:https://my.oschina.net/stackoom/blog/4335531