title: Find element in array using regex match without iterating over array
body: <p>I have an array of elements </p>
  
  <pre><code>["page=4", "sortOrder=asc", "datePosted=all-time"]
  </code></pre>
  
  <p>Using javascript or jquery I want to find the index of the element which begins  <code>"sortOrder="</code> . I will not know the full string of this element at compile time, just the <code>"sortOrder="</code> part.  </p>
  
  <p>I'm assuming that this can be done without the need to iterate over the array and perform <code>item.match("sortOrder=")</code>, but maybe I am wrong. </p>
  
  <p>Thanks for any help.</p>