Access Map via Variable Name in Path Name
<p>I have a map object containing a list of data about people. Every person's name is unique. The data fields of each person may not contain the same type of information (ie - Joey contains a date field, but Jill does not). </p>

<p>I am wondering if I can access a certain part of my map by using a variable name as part of the map path. Consider the following:</p>

<pre><code>var data = {
  'Joey': {
    'id': '912',
    'date': 'May 14 2012',
  },
  'Jill': {
    'id': '231',
    'login': 'JillM',
  }
}

var name="Joey";
var joeyDate = data. + name + .date; //This does not work. Is there an alternative?
</code></pre>
