Palindrome checker algorithm

palindrome(
)
Returns:
 

I created this algorithm as a requirement for my freeCodeCamp JavaScript Algorithms and Data Structures Certification. It returns true if the given string is a palindrome, ignoring letter case and all non-alphanumeric characters. Otherwise, it returns false.