function isPalindrome(text) { return [...text].reverse().join('') === text; } isPalindrome = text => { return [...text].reverse().join('') === text; } isPalindrome = text => [...text].reverse().join('') === text;