function purgeMonth(month) {
  month = month.toLowerCase().trim();

  switch (month) {
    case 'set':
    case 'setiembre':
    case 'septiembre':
      month = 'sep';
      break;


    case 'agosto':
      month = 'ago';
      break;
  }

  return month;
}
/**
 * Remove trailing spaces and lowerizes the month
 * Also standarize the 'code'
 * (e.g. 'set', 'sep' and 'septiembre' is returned as 'sep')
 * @param {string} month String found in the month column of the file
 */
Remove trailing spaces and lowerizes the month
Also standarize the 'code'

@param {string} month String found in the month column of the file
Remove trailing spaces and lowerizes the month Also standarize the ' code ' @param { string } month String found in the month column of the file
function purgeMonth(month) {
  month = month.toLowerCase().trim();
  switch (month) {
    case 'set':
    case 'setiembre':
    case 'septiembre':
      month = 'sep';
      break;
    case 'agosto':
      month = 'ago';
      break;
  }
  return month;
}
function purgeMonth ( month ) { month = month . toLowerCase ( ) . trim ( ) ; switch ( month ) { case 'set' : case 'setiembre' : case 'septiembre' : month = 'sep' ; break ; case 'agosto' : month = 'ago' ; break ; } return month ; }
Remove trailing spaces and lowerizes the month
 Also standarize the 'code'
 (e.g.
Remove trailing spaces and lowerizes the month Also standarize the ' code ' ( e . g .