{"size": 410, "ext": "js", "max_stars_repo_path": "webpack/data/counties.js", "max_stars_repo_name": "CAVaccineInventory/site", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "webpack/data/counties.js", "max_issues_repo_name": "CAVaccineInventory/site", "max_issues_repo_issues_event_min_datetime": "2021-06-30T04:23:00.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-27T01:33:05.000Z", "max_forks_repo_path": "webpack/data/counties.js", "max_forks_repo_name": "CAVaccineInventory/site", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 55, "max_forks_count": null, "avg_line_length": 25.625, "max_line_length": 65, "alphanum_fraction": 0.6829268293}
// Calls the JSON feed to pull down counties data
async function fetchCounties() {
  const siteURL = "https://api.vaccinateca.com/v1/counties.json";
  const response = await fetch(siteURL);

  if (!response.ok) {
    alert("Could not retrieve the county data.");
    return;
  }

  const json = await response.json();
  return json["content"].filter((county) => county["County"]);
}

export { fetchCounties };
