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.
Sure! It can be. What do you have in mind?
if/else could be made less verbose
Are you sure about the syntax of that last paragraph? Didn't you mean to write
Okay, so when I look at this I am confused by the description. Am I extending it to provide a wrapper that will only handle the speaking case? Or am I trying to make a wrapper that will take any function and wrap it with some additional functionality?
Your test cases are backwards on this one. On the instructions it says that:
// returns "theStealthWarrior"
toCamelCase("the-stealth-warrior")
// returns "TheStealthWarrior"
toCamelCase("The_Stealth_Warrior")
However, the actual test cases to pass it does just the opposite, where dashes (-) require the output to be PascalCased , while the underscores (_) require the output to be camelCased.