function formatRecoveredData(cases, recovered) {
	const dates = Object.keys(cases[0]).slice(4);
	const countries = cases.map((country) => ({
		name: country['Country/Region'],
		province: country['Province/State'] || '',
		Lat: country.Lat || '',
		Long: country.Long || ''
	}));
	return countries.map((country) => {
		const provinces = recovered.filter(el => el['Country/Region'] === country.name && el['Province/State'] === country.province);
		dates.forEach(date => {
			country[date] = provinces[0] ? parseInt(provinces[0][date]) : 0;
		});
		return country;
	});
}
/**
 * Formats recovered data from JHU to match cases data in length and format
 * @param 	{array}		cases 		JSON formatted cases data from JHU csv file
 * @param 	{array} 	recovered 	JSON formatted recovered data from JHU csv file
 * @returns {array} 				JSON formatted recovered data in same structure as cases data
 */
Formats recovered data from JHU to match cases data in length and format
@param       {array}         cases           JSON formatted cases data from JHU csv file
@param       {array}         recovered       JSON formatted recovered data from JHU csv file
@returns {array}                             JSON formatted recovered data in same structure as cases data
Formats recovered data from JHU to match cases data in length and format @param { array } cases JSON formatted cases data from JHU csv file @param { array } recovered JSON formatted recovered data from JHU csv file @returns { array } JSON formatted recovered data in same structure as cases data
function formatRecoveredData(cases, recovered) {
	const dates = Object.keys(cases[0]).slice(4);
	const countries = cases.map((country) => ({
		name: country['Country/Region'],
		province: country['Province/State'] || '',
		Lat: country.Lat || '',
		Long: country.Long || ''
	}));
	return countries.map((country) => {
		const provinces = recovered.filter(el => el['Country/Region'] === country.name && el['Province/State'] === country.province);
		dates.forEach(date => {
			country[date] = provinces[0] ? parseInt(provinces[0][date]) : 0;
		});
		return country;
	});
}
function formatRecoveredData ( cases , recovered ) { const dates = Object . keys ( cases [ 0 ] ) . slice ( 4 ) ; const countries = cases . map ( ( country ) => ( { name : country [ 'Country/Region' ] , province : country [ 'Province/State' ] || '' , Lat : country . Lat || '' , Long : country . Long || '' } ) ) ; return countries . map ( ( country ) => { const provinces = recovered . filter ( el => el [ 'Country/Region' ] === country . name && el [ 'Province/State' ] === country . province ) ; dates . forEach ( date => { country [ date ] = provinces [ 0 ] ? parseInt ( provinces [ 0 ] [ date ] ) : 0 ; } ) ; return country ; } ) ; }
Formats recovered data from JHU to match cases data in length and format
 @param       {array}         cases           JSON formatted cases data from JHU csv file
 @param       {array}         recovered       JSON formatted recovered data from JHU csv file
 @returns {array}                             JSON formatted recovered data in same structure as cases data
Formats recovered data from JHU to match cases data in length and format @param { array } cases JSON formatted cases data from JHU csv file @param { array } recovered JSON formatted recovered data from JHU csv file @returns { array } JSON formatted recovered data in same structure as cases data