Covid_AppScript_Email_Blaster.js
// Helper function to convert a calculation to a comma separated string with 'up'/'down' indicators.
Helper function to convert a calculation to a comma separated string with 'up'/'down' indicators.
Helper function to convert a calculation to a comma separated string with ' up ' / ' down ' indicators .
function convert(val){
  if (val === Number.MAX_VALUE) return "Inf" + " ↑" 
  else if (val > 0) return val.toLocaleString('en') + "% ↑";
  else return val.toLocaleString('en') + "% ↓";
}
function convert ( val ) { if ( val === Number . MAX_VALUE ) return "Inf" + " ↑"  else if ( val > 0 ) return val . toLocaleString ( 'en' ) + "% ↑"; else return val . toLocaleString ( 'en' ) + "% ↓"; }
Helper function to convert a calculation to a comma separated string with 'up'/'down' indicators.
Helper function to convert a calculation to a comma separated string with ' up ' / ' down ' indicators .