title: how to grep this Javascript object array?
body: <p>I have the following object structure:</p>
  
  <pre><code>var mapData = 
  {
     Summary:
     {
        ReportName: 'Month End Report'
     },
     NortheastRegion:
     {
        Property1: 123,
        RegionName: 'Northeast'
     },
     SoutheastRegion:
     {
        Property1: 456,
        RegionName: 'Southeast'   
     },   
  }
  </code></pre>
  
  <p>I want to write a grep function that returns an array of region names. The following function is not returning any values:</p>
  
  <pre><code>var regions = $.grep(mapData, function(n,i)
  {
     return n.RegionName;
  });
  </code></pre>
  
  <p>What am I missing here?</p>