title: How to search for multiple index(es) of same values in javascript array
body: <p>I have a 1 dimensional array like:</p>
  
  <pre><code>var abc = ['a','a','b','a','c']
  </code></pre>
  
  <p>Now I want to get back all the indexes of <code>'a'</code>, that is 0, 1 and 3.</p>
  
  <p>Are there any simple solutions?</p>
  
  <p>P.S.</p>
  
  <p>I know <code>IndexOf</code> or <code>jQuery.inArray()</code>. But they just returned the index of first matched element only</p>