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.
Well, two ideas came to my mind.
First. You just override
Array.prototype.reduce
andArray.prototype.concat
to your function that will throw an error,you can't use this method
or something simillar.Second, you still override it, but with an inner counter of invokes. You would assing these functions to a variables and on the prototype you would write your own function simillar to this.
The test would check the counter if it has changed. In my mind this works, but you would have to check that for yourself ;).