array like objects

Jorge Chamorro jorge at jorgechamorro.com
Tue Dec 15 05:05:46 PST 2009


On 15/12/2009, at 13:51, P T Withington wrote:
> (...)
> I once had the vain hope that I could say:
> 
>  function MyArray () {}
>  MyArray.prototype = [];
> 
> to create my own subclasses of Array.  That might have lessened the need for isArrayLike.

For that, we'd need an Array.create(). It might be a good thing... ¿?
-- 
Jorge.


More information about the es-discuss mailing list