I just had a var I believed to be equal to "" or undefined. It turned out it was equal to \r. I couldn’t see this until I wrapped the var in quotes and outputted it to the console and I saw the line break. Is their any way I could have saw \r rather than nothing? Perhaps wrapping it in some function which will output \r or \n etc.
I just had a var I believed to be equal to or undefined .
Share
For general you could use something like JSON: