I would like to propose a built-in method
Array.create(arrayPrototypeObject) which would create a new array
with arrayPrototypeObject as it's prototype.

Other posts already mention Array.create such as
https://mail.mozilla.org/pipermail/es-discuss/2009-December/010425.html and
a describing article
http://perfectionkills.com/how-ecmascript-5-still-does-not-allow-to-subclass-an-array/

Maybe there is a ES.next feature which allows subclassing javascript arrays
in another way then mentioned above?

Regards,

Henri
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to