JavaScript in Depth
JS: Get Max/Min Value of Array
By Xah Lee. Date:
2015-09-09
. Last updated:
2020-10-01
.
Get max:
Math.max(...
myArray
)
Get min:
Math.min(...
myArray
)
〔see
Spread Operator
〕
〔see
Math
〕