Newline Character?

Using the String.substr() method, I’m taking apart a string character by character. How do I determine when a line break (newline) occurs?

if (myString.substr(4,1) == newline){ // <-- right idea, wrong syntax

Thanks for any help.