Math.min.apply and Math.max.apply shorthand