I was just digging through some JavaScript code (Raphaël.js) and came across the following line (translated slightly):
Math.min.apply(0, x)
where x
is an array. Why on earth would you do this? The behavior seems to be take the min from the array x
.