I have a variable with a string attached to it. I'm trying to convert this string into an array with each new line being a new entry.
const song = `Baby Shark doo doo doo doo doo doo
Baby Shark doo doo doo doo doo doo
Baby Shark doo doo doo doo doo doo
Baby Shark!`
I expecting something like this: ["Baby Shark doo doo doo doo doo doo", "Baby Shark doo doo doo doo doo doo", "Baby Shark doo doo doo doo doo doo", "Baby Shark!"]
I'm drawing a blank what would be the cleanest way to solve this?