Problem with indexOf on JavaScript array
<pre><code>var allProductIDs = [5410, 8362, 6638, 6758, 7795, 5775, 1004, 1008, 1013, 1014, 1015, 1072, 1076, 1086, 1111, 1112, 1140];

lastProductID = 6758;
</code></pre>

<p>for some reason I get a -1 or I guess which is equivalent to not found for this:</p>

<pre><code>alert(allProductIDs[allProductIDs.indexOf(lastProductID));
</code></pre>

<p>I can't figure out for the life of my why because it should find 6758 and that would be index 3. If it's index 3 then I should get back 6758 I would think.</p>
