title: How to find a value in an array of objects in JavaScript?
body: <p>I have an array of objects:</p>
  <pre><code>Object = {
     1 : { name : bob , dinner : pizza },
     2 : { name : john , dinner : sushi },
     3 : { name : larry, dinner : hummus }
  }
  </code></pre>
  <p>I want to be able to search the object/array for where the key is &quot;dinner&quot;, and see if it matches &quot;sushi&quot;.</p>
  <p>I know jQuery has $.inArray, but it doesn't seem to work on arrays of objects. Or maybe I'm wrong. indexOf also seems to only work on one array level.</p>
  <p>Is there no function or existing code for this?</p>