Broken interface of Math.min
In an article about creating a column layout I found the following two lines of code: var min = Array.min(blocks); var index = $.inArray(min, blocks); This first finds the minimum value in blocks and then the index of that value. This combination of lines is very strange. Array.min already knows the index of the minimum element and throws it away. Then the programmer needs to find the index again with a linear search....