I have a text file filled with dictionary words that looks something like this:
banana
apple
orange
lemon
grape
and I want to be able to convert it to an array so that I can use it in a JavaScript file I am writing:
["banana", "apple", "orange", "lemon", "grape"]
For context, I'm making a request to the text file with the Fetch API. Does anyone know how I would be able to convert this?