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.
How do you think I can improve this?
It's not optimized and not clever solution.
Not working
Well I prefer to create two separate functions instead of one but bigger. First one - capitalizeFirstLetter(string) and second one which uses it while mapping. That makes it more clear in my opinion.