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.
This comment is hidden because it contains spoiler information about the solution
This should not have to be 1kyu, or prepared solution should not be so helpful.
In my opinion, this is not chalenging at all. Just too much code to "rewrite" from Array prototype.
Only "challenge" is to try - could i write a setter with numeric name only? But usage of
Object.defineProperty
in solution template is too much help. When you realize, how to create such setters, there is no chalenge at all (expect of "i should write all that stuff, even when i know, it would work).My solution is ugly one, as plain old ES5 is not my cup of coffee (to be true ES6 too not, my only productive language is PHP).