Type Challenges Judge

IsPalindrome

Implement type IsPalindrome<T> to check whether a string or number is palindrome.

For example:

IsPalindrome<'abc'> // false IsPalindrome<121> // true