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.
amazing
FAIL!
yep, this one is incorrect
Actually, this solution is incorrect, and does not work in some tests. We need to compare strings, but compiler just compares pointers to memory location of that strings.
It does compare addresses, there were no such tests. Tests updates, it shouldn't work now.
How is that '==' is giving correct results? Doesn't it compare addresses rather than strings?
It does unless ES6 tail-call optimization takes effect. In this implementation, it does not take effect, because function call to map is not in tail-call position. See here: http://www.2ality.com/2015/06/tail-call-optimization.html
Does it not create a burden on memory with long list because of recursion and call stack ?