Object.getPrototypeOf(arguments) VS [[Class]]

Andrea Giammarchi andrea.giammarchi at gmail.com
Wed Nov 28 09:56:29 PST 2012


object instanceof Object && !object.propertyIsEnumerable('**length')

every Array will be ... uhm, I remember the trick then was about looping
through for/in ... problem is, if length is 0 there's no way to udnerstand
if that object is arguments or not.

Right

On Wed, Nov 28, 2012 at 9:44 AM, Brendan Eich <brendan at mozilla.org> wrote:

> object instanceof Object && !object.propertyIsEnumerable('**length')
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121128/f0c88ef8/attachment.html>


More information about the es-discuss mailing list