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. If we extend the Array prototype, we inherit the native array functions; but, we no longer have the ability to use bracket notation to set and get indexe ...
Read More ยป