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's premise is flawed: JS objects do not exactly follow key insertion order, but is defined as
Only
Map
s andSet
s retain insertion order regardless of key/value types.Needs edge case with 0 input arguments: at least 1 solution fails in this case.
Test fixture is vulnerable to input modification: https://www.codewars.com/kata/reviews/57056369006458d7e100002f/groups/6451be4d582ac90001eb585b
Duplicate of a lot of katas.