Jquery Index Returns -1 when searching for 0
<p>Why does jQuery index return -1 for a 0 in an array?</p>

<pre><code>var myArray = [0,4,8];
document.write('&lt;br/&gt;8 is at index : ' + $(myArray).index(8));
document.write('&lt;br/&gt;4 is at index : ' + $(myArray).index(4));
document.write('&lt;br/&gt;0 is at index : ' + $(myArray).index(0));
</code></pre>

<p><a href="http://jsfiddle.net/JohnNeed/WGPMa/1/" rel="nofollow">http://jsfiddle.net/JohnNeed/WGPMa/1/</a></p>
