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.
In JavaScript my code fails the tests due to timeout. Fewer (or simpler) tests would fix that.
I suggest making this kata at least a bit more difficult. Here are some ideas:
Source: http://www.ecma-international.org/ecma-262/6.0/
I didn't want to deal with throwing errors - handling empty arrays when no initial value is present is not the that essential for this kata.
I'd suggest adding some more details on how non letter characters should be handled.
Fully agreed - I've changed the kata to ask for a more traditional behaviour - if the initial value is not set it should use the first element of the array as the first element.
Thanks for the tip. I'm using
assertSimilar
in the tests for arrays.Thanks for noticing - fixed.