Advertisement
Guest User

Untitled

a guest
May 6th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. if (str.substr(-2) === "rn") {
  2. // yes, it does
  3. }
  4.  
  5. if (/rn$/.test(str)) {
  6. // yes, it does
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement