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.
Seems like you're following bad practices if you're mutating an object passed to your function when that is not the function's purpose.
The only time you should mutate an argument is when that is the explicit goal of the function.
Imagine calling the built-in min() function on a list, only to find that the function has removed all the items in the list except the minimum.