Guest User

Untitled

a guest
Nov 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. function isPalindrome(string) {
  2. return string.replace(/[\W_]/g, '').split('').reverse().join('').toLowerCase() === str.replace(/[\W_]/g,'').toLowerCase();
  3. }
Add Comment
Please, Sign In to add comment