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 the example where it looped right I thought the end values would end up in reverse order at the beginning of the array e.g. loopArr([1, 5, 87, 45, 8, 9], 'right', 2) => [9, 8, 1, 5, 87, 45]. You should change the examples so there are not two of the same values for clarification, but other than that good problem!