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.
The kata needs random tests.
Also, the kata needs
chai.config.truncateThreshold = 0
.Discouraging
JSON.parse
in favour ofeval
ornew Function
does not seem like the best idea.Also, no random tests
Uhm... so this is not a bugfix kata, but there are a whole chunk of solution code as initial code, which also doesn't quite work? It's pretty confusing.
Usually unless it's a bugfix kata, initial solution will only provide the barebone structure for people to fill in the actual code. You might consider deleting the initial code except the function definition.