Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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).