title: Finding field.value in JSON array
body: <pre><code>var x = [{ a: 1, b: 2}, { a: 11, b: 12}, { a: 31, b: 23}, { a: 51, b: 24}]
  </code></pre>
  
  <p>how do you find <code>a = 11</code> ?</p>
  
  <p>for simple arrays one can do <code>x.indexOf('1');</code> so perhaps the solution should be something like</p>
  
  <pre><code>var a1 = x.indexOf({a: 1});
  </code></pre>
  
  <p>ofcourse, I want to obtain the entire JSON for which the value matches.</p>