Why does Math.min([1,2]) return NaN?
<p>I've been debugging this code for about an hour, and it looks like <code>Math.min([1,2])</code> returns <code>NaN</code>.</p>

<pre><code>var int_array = [1,2]
console.log(Math.min(int_array)) //prints NaN, but expect 1
isNaN(Math.min(int_array))===true
</code></pre>