isPalindrome = s => ![...s.toLowerCase()].some((c, i, a) => c != a[a.length - i - 1]);
function isPalindrome(x) {const xReverse = x.split("").reverse().join("");return !!(xReverse.toLowerCase() === x.toLowerCase())}- isPalindrome = s => ![...s.toLowerCase()].some((c, i, a) => c != a[a.length - i - 1]);