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.
Hello!
Kata "task" has no mention of sorting keys:
If automaton receives an object it will return an array of 3 elements: [n, keys, values] where n is the number of keys, keys is an array of all keys, and values is an array of stringified values. Examples:
all keys for array with length == 12 is:
but if you sort keys array - this will happen:
So, i want to suggest to (1) add a sorting requirements to the description, or (2) fix the tests (something like:
sort((a, b) => a < b ? 1 : (a > b ? -1 : 0))
can help (maybe?)).