Community

Extending JavaScript Arrays While Keeping Native Bracket-Notation Functionality

(Ben Nadel) In JavaScript, we can sub-class native data types by extending the native prototypes. This works perfectly with the native String object; but, when it comes to native Arrays, things don’t work quite so nicely.

Read More - Register for Free Membership