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.
Right. I was working directly with base array. Now it's ok. Thanks for clarification.
Confirm. Seems like something wrong with random test function for js. Test output:
This comment is hidden because it contains spoiler information about the solution
I found you can use
console.dir()
on your result for this case or just test your function in browser's console.