Skip to content
Advertisement

Removing “,” at the beginning of a line CSV

i want to convert a .csv file and write a new one. However I am not able to remove the first , i am kinda stuck here and it is driving me crazy. This is my code:

JavaScript

That’s the output i am getting in the newly generated file

JavaScript

Output extractedtasks:

JavaScript

Output extractedtasksformated:

JavaScript

Advertisement

Answer

Because extractedtasks is an array, instead of converting it to a string you should just join it with the expected separator:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement