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


Groups > comp.lang.javascript > #23064

Re: Trying to view the properties of an object

Message-ID <2389860.3LUAueBLlM@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2014-02-11 13:43 +0100
Subject Re: Trying to view the properties of an object
Newsgroups comp.lang.javascript
References <properties-20140211082627@ram.dialup.fu-berlin.de> <Enumerable-20140211090039@ram.dialup.fu-berlin.de>

Show all headers | View raw


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.

Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web