Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The code in the rightmost brackets gets executed first, converting the input string to uppercase.
Then, this value is passed into the leftmost pair of brackets (through the use of an es6 arrow function), and compared against the reversed string.
What is '.toUpperCase() doing here? ( I know what it does but why are we using it here?)
The statement of the original kumite I forked said it's case insensitive so I followed it, though I agree with you that palindromes should have the same capitalization.
I would classify different character capitalization as on either end to nullify being a palindrome, but I guess that depends how strict you want to be with it.
Heh, I don't think I can get it any smaller than that in JS!
I understand, but it would have been better to add a comment rather that creating a fork.
I removed
list(
, which makes it shorter.Your fork is almost identical to my fork. Please don't add a fork if it does not add anything essential to the Kumite.
Your fork is almost identical to my fork. Please don't add a fork if you are adding nothing essential to the Kumite.