Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #23064 > unrolled thread

Re: Trying to view the properties of an object

Started byThomas 'PointedEars' Lahn <PointedEars@web.de>
First post2014-02-11 13:43 +0100
Last post2014-02-11 13:43 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Trying to view the properties of an object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-11 13:43 +0100

#23064 — Re: Trying to view the properties of an object

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-02-11 13:43 +0100
SubjectRe: Trying to view the properties of an object
Message-ID<2389860.3LUAueBLlM@PointedEars.de>
Stefan Ram wrote:

> ram@zedat.fu-berlin.de (Stefan Ram) writes:
>> but the following loop did not produce any output:
>> for( var i in 0 . __proto__ . __proto__ )console.log( i );
> 
>   I just found this:
> 
>       »Built-in properties and methods are not listed in
>       for..in, because they have a special [[Enumerable]]
>       flag set to false.«

Again you have neglected to cite your sources.
 
>   . That might explain why the direct for-loop approach does
>   not work. But maybe there is some other way to list built-in
>   properties.

Read, think, post.  In that order.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web