Subclassing ECMAScript arrays with Array.create(arrayPrototypeObject)

# Henri Manson (13 years ago)

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 esdiscuss/2009-December/010425 and a describing article 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?

,

Henri

# Axel Rauschmayer (13 years ago)