Is it possible to subclass and inherit from javascript Arrays?
I\'d like to have my own custom Array object that has all the features of an Array, but contains addit
Juriy Zaytsev (@kangax) just today released a really good article on the subject.
He explores various alternatives like the Dean Edwards iframe borrowing technique, direct object extension, prototype extension and the usage of ECMAScript 5 accessor properties.
At the end there is no perfect implementation, each one has its own benefits and drawbacks.
Definitely a really good read: