Why can't i write souch a short code...
I always write long code(
I did not know this was a thing.
I love when you can just use words and make the thing happen.
it is stupid in terms of time and space complexity.
Every time I think I'm writing efficiently, I find the one liner after submitting... every time!
# that's the reasons developers use comments
This is not even cheating. This is a disgrace for a samurai. Please remove this kata.
JS lets you compared variables with 2 differents types with each other using the "==" operator. "===" checks if the type is also the same. The real "equals"
This is what I thought: if matched a invalid char then it means u have to return false.
This comment is hidden because it contains spoiler information about the solution
Clear and simple!
I forgot you can split them. I think I'm too used to regex lol
If I log out the input array after the method has run, I get the same as before, i.e. the input is not changed.
Off-by-one errors have claimed millions of lives. 😅
This just proves how crap this Kata is...
Oh, shit!, I had no idea for the second argument in the int function. The use of the map is perfect.