title: Find specific key value in array of objects
body: <p>This is the code:</p>
  
  <pre><code>var groups = {
      "JSON":{
          "ARRAY":[
              {"id":"fq432v45","name":"Don't use me."},
  
              {"id":"qb45657s","name":"Use me."}
          ]
      }
  }
  </code></pre>
  
  <p>I want to get the name value where the id is "qb45657s" how could this be accomplished? I figured the obvious loop through all of the array and check if it's equal but is there an easier way?</p>
  
  <p>Edit: I cannot change "Array" to an object because I need to know the length of it for a different function.</p>