title: Querying an array of objects
body: <p>Anyone have guidance on how to query an array of hashes in coffeescript?</p>
  
  <p>For example, I have an array of hashes, each with a "name" and "setting":</p>
  
  <pre><code>[
    {"name":"color", "setting":"red"},
    {"name":"scale_min", "setting":"15"},
    {"name":"scale_type", "setting":"linear"},
    {"name":"x_axis_label", "setting":"Weeks"}
  ]
  </code></pre>
  
  <p>I want to find the element in this array where the hash "name" is "x_axis_label" </p>
  
  <p>How can I easily do that with coffeescript? </p>
  
  <p>I need some kind of <code>value_for_key_in_object(key, object)</code> function and figured if would be part of the lexicon...</p>