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.
This comment is hidden because it contains spoiler information about the solution
Use of
this
is a little creepy, but could be mapped to an exported object in a real module.This comment is hidden because it contains spoiler information about the solution
Extracting a named function that pigifies one word would also be preferable in real production code to using an anonymous function.
Agreed. It says in the puzzle descriptions: "All code is ran through BabelJS (ES 2015 supported)".
repeat
is part of ES 2105, isn't it?By far the best combination of clarity and brevity among the solutions I reviewed. Nice job.