isPalindrome() Overview Checks if a string is a palindrome. Code const isPalindrome = (str) => str === str.split("").reverse().join("");