Is Palindrom?

Hard
conditional types
template literal
infer
recursion

Description:

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

For example:

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

Code

Loading...