what is way to find if string has new line character(/n) followed by any other character in javascript? Currently I'm doing this:
if (((mystring).slice(-2)) == "/\n/A") {
//mycode
}
I want to check whether last two characters of string are \n and A. My thing is not working. Is there any other way to do this?