Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

palindrome

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

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

isPalindrome = text => [...text].reverse().join('') === text;
Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #palindrome
ADD COMMENT
Topic
Name
7+9 =