code: function resolveHierarchy(wofRecords, hierarchy) {
    return Object.keys(hierarchy).map(function(key) {
      return wofRecords[hierarchy[key]];
    }).filter(isDefined).filter(hasName);
  }
docs: /*
  This function finds all the WOF records associated with a hierarchy
  
  For example, a record with the hierarchy:
  {
  "continent_id":102191569,
  "country_id":85632717,
  "region_id":85668357
  }
  
  would return:
  [
  records[102191569],
  records[85632717],
  records[85668357]
  ]
  
  lastly, filter out any hierarchy elements that are undefined or w/o a name