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.
Thanks, I've updated the test cases to cover undefined values in the input array.
No, uniq(['a','a','b','b','c','a','b','c','c']) should return ['a','b','c','a','b','c'].
uniq only reduces consecutive duplicate entries (see also: https://en.wikipedia.org/wiki/Uniq).
Thanks for pointing out this flaw in the test case. I've added a length verification and some more tests to test various aspects of the uniq() behaviour.
Yes, this fits more with the theme of the kata. I've updated the kata. Thanks!