JavaScript find array index with value
<p>Say I've got this</p>

<pre><code>imageList = [100,200,300,400,500];
</code></pre>

<p>Which gives me</p>

<p><code>[0]100 [1]200</code> etc...</p>

<p>Is there any way in javascript to return the index with the value?</p>

<p>I.e. I want the index for <strong>200</strong>, I get returned <strong>1</strong>.</p>

<p>Hope I've explained it well enough.</p>
