Return index of multidimensional array
<p>I want to search only the first column of <code>myarray</code> and return the index:</p>

<p>example search for "s1" returns 0, search "s3" returns 1, and so on</p>

<p>javascript</p>

<pre><code>myarray = [
['s1', 's2'],
['s3', 's4'],
['s5', 's6']
]
</code></pre>
