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

Andrea Giammarchi andrea.giammarchi at gmail.com
Wed Nov 28 10:23:49 PST 2012


https://gist.github.com/4163041

that should be it.

Thanks


On Wed, Nov 28, 2012 at 9:56 AM, Andrea Giammarchi <
andrea.giammarchi at gmail.com> wrote:

> 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/a23e552d/attachment.html>


More information about the es-discuss mailing list