title: jquery dictionary display top 3 records
body: <p>I am trying to display only top 3 records in a key value pair using jquery. How can I find index for each item?</p>
  
  <p><a href="http://jsfiddle.net/joycse06/fBy5K/1/" rel="nofollow">My trails fiddle</a></p>
  
  <pre><code>var _map = {
    'severity-normal': 0,
    'severity-minimal': 0,
    'severity-moderate': 0,
    'severity-severe': 0,
    'severity-highly-severe': 0
  };
  
  $.each(_map, function(key, value) {
    //alert(index + ': ' + value); 
  
      $('body').append('Key: ' + key + ' Value: ' + value + '&lt;br /&gt;')
  
  });
  </code></pre>