title: Search an array for matching attribute
body: <p>I have an array, I need to return a restaurant's name, but I only know the value of its "food" attribute (not it's index number).</p>
  
  <p>For example, how could I return "KFC" if I only knew "chicken"?</p>
  
  <pre><code>restaurants = 
    [
      {"restaurant" : { "name" : "McDonald's", "food" : "burger" }},
      {"restaurant" : { "name" : "KFC",        "food" : "chicken" }},
      {"restaurant" : { "name" : "Pizza Hut",  "food" : "pizza" }}
    ];
  </code></pre>