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.
My solution was very similar to yours but instead of using Math.min in the array, I sorted it ascending and returned the value at idx 0. Clearly not very efficient.
Love the brevity but it takes some time to understand.
I knew it! This could be done by simply chaining string methods in a single line.
Couldn't hack it though, my solution ended up being a big procedural mess.