I have the following multi-line string that has been escaped for new-lines:
var types = "a\
b\
c\
d";
I'm trying to split them by new-lines:
var data = types.split('\n');
I've had no luck with this.. How do I do this?