title: How can I get a key name (in a hash) by using its value?
body: <p>I understand this is a little unorthodox.</p>
  
  <p>Lets say I have this hash.</p>
  
  <pre><code> someHash = {
      'item1' =&gt; '5',
      'item2' =&gt; '7',
      'item3' =&gt; '45',
      'item4' =&gt; '09'
  }
  </code></pre>
  
  <p>Using native js, or prototype or Jquery -- is there a method that will enable me to get the "key name" by just having the value?</p>
  
  <p>I don't want all the keys, just the one that matches my value. Sorta of a like a map in reverse?</p>
  
  <p>I am getting a return from the db which I get a "value" and I have to match that value with some js hash on the front end. </p>
  
  <p>So the app hands me "45"... Is there a way to use js (prototype or jquery) to then get the key "item3"?</p>