code: function(name, obj) {
    var parts = name.split('.');
    if (parts.length > 1) {
      var curProperty = parts.shift();
      return obj[curProperty] ? getProperty(parts.join('.'), obj[curProperty]) : undefined;
    }
    else
      return obj[name];
  }
docs: /*
  Dotted get property function.
  
  eg 'my.property' from { my: { property: 'hello' } } returns 'hello'