Fixing instanceof (Array.isArray() etc.)?

Brendan Eich brendan at
Sun Jan 22 11:55:39 PST 2012

> Axel Rauschmayer <mailto:axel at>
> January 21, 2012 10:13 PM
> Duck typing is an interesting consideration. If one could express
>      x follows ArraySpec
> then that would work for both array-like objects and Array instances 
> from other frames.

You're talking about contracts here. Not ready for standardization, but see


More information about the es-discuss mailing list