I would like to remove gaps and blank spaces in an array that I get from google sheet and print in this way:
var prueba = ['NOV-DIC 17','ENE-FEB 18','MAR-ABR 18','MAY-JUN 18','JUL-AGO
18','SEP-OCT 18','NOV-DIC 18',' ',' ','',''];
As you can see there are both empty and blank spaces after that I format it with a join and it looks like this:
NOV-DIC 17,ENE-FEB 18,MAR-ABR 18,MAY-JUN 18,,,, ,
But what I really need is for you to print this:
NOV-DIC 17,ENE-FEB 18,MAR-ABR 18,MAY-JUN 18
without the last commas