I have an array of plain strings that I need to save to a text file. However, I'm encountering an issue where the strings are being saved as comma separated values instead of new lines.
Here is the data I currently have: https://i.sstatic.net/r3XVr.jpg
And here is the file I'm currently getting: https://i.sstatic.net/obKXf.jpg I am creating the file using the following code snippet:
let newFile = new Blob([result['list']], {type: "text/plain", endings: 'native'});
The 'result' variable is fetched from the server. Is there a way to ensure that each element in the array appears on a new line in the text file generated using File/Blob, or is there a different approach I should consider?