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.
I love this solution! I'm kinda obsessed with reduce() and I've lost my ability to see other solutions,if I can use reduce(). How to overcome that >< ???
The best one for sure.
Yep, replace is certainly a better fit. I'd probably prefer multiline for clarity, as you suggest, but this is clearly superior to split/filter/map.