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


Groups > comp.lang.javascript > #28888

Re: is there a function enumerating all element in an object?

From Chuck Anderson <seemysig@thisis.invalid>
Newsgroups comp.lang.javascript
Subject Re: is there a function enumerating all element in an object?
Date 2015-11-14 17:58 -0700
Organization A noiseless patient Spider
Message-ID <n28l80$d52$1@dont-email.me> (permalink)
References (3 earlier) <n0to0e$3im$1@speranza.aioe.org> <XnsA542D564FBADCeejj99@194.109.6.166> <87ziz1flii.fsf@bsb.me.uk> <XnsA542E83B4EE2eejj99@194.109.6.166> <8c0e17f6-9c66-4cc2-a157-e444c68fe975@googlegroups.com>

Show all headers | View raw


RobG wrote:
> On Friday, October 30, 2015 at 7:49:49 AM UTC+10, Evertjan. wrote:
>> Ben Bacarisse <ben.usenet@bsb.me.uk> wrote on 29 Oct 2015 in 
>> comp.lang.javascript:
>>
>>> "Evertjan." <exxjxw.hannivoort@inter.nl.net> writes:
>>>
>>>> Joao Rodrigues <groups_jr-1@yahoo.com.br> wrote on 29 Oct 2015 in 
>>>> comp.lang.javascript:
>>>>
>>>>>> Object.keys(obj).map(key => callback(key, obj[key]));
>>>>> Or:
>>>>>
>>>>> Array.from(Object.keys(obj), key => callback(key, obj[key]));
>>>> Could you please explain to us simple minded how this realy works?
> [...]
>> Thank you, now I know the name, I will start here:
>>
>> <https://developer.mozilla.org/en-
>> US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#Browser_compatibi
>> lity> 
> 
> There is always the ECMAScript 2015 specification[1], but it's impossibly turgid in many places. MDN is becoming an increasingly important resource.
> 
> 1. <http://ecma-international.org/ecma-262/6.0/index.html#sec-arrow-function-definitions>
> 

Probably steppin' in a pile of poo here (long time lurker and c.lang.php 
participant), but I only recently learned of Object.toSource, which 
displays the source code of an object - in Firefox.

The Mozilla developers site warns that it should not be used on an 
active site as there are many incompatibilities (like no one else 
supports it?), but I have used it in the manner they suggest.  It is 
very handy while debugging - within Firefox.

-- 
  *****************************
   Chuck Anderson • Boulder, CO
   http://cycletourist.com
   Turn Off, Tune Out, Drop In
  *****************************

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


Thread

is there a function enumerating all element in an object? Stone Zhong <stone.zhong@gmail.com> - 2015-08-21 22:44 -0700
  Re: is there a function enumerating all element in an object? nathank887@gmail.com - 2015-10-28 22:11 -0700
    Re: is there a function enumerating all element in an object? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-10-29 15:59 -0200
      Re: is there a function enumerating all element in an object? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-10-29 16:20 -0200
        Re: is there a function enumerating all element in an object? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-10-29 20:58 +0100
          Re: is there a function enumerating all element in an object? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-10-29 20:49 +0000
            Re: is there a function enumerating all element in an object? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-10-29 22:49 +0100
              Re: is there a function enumerating all element in an object? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-10-30 16:05 -0200
              Re: is there a function enumerating all element in an object? RobG <rgqld@iinet.net.au> - 2015-11-14 13:16 -0800
                Re: is there a function enumerating all element in an object? Chuck Anderson <seemysig@thisis.invalid> - 2015-11-14 17:58 -0700
                Re: is there a function enumerating all element in an object? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-11-16 14:26 -0200
  Re: is there a function enumerating all element in an object? donmaximo01@gmail.com - 2015-10-29 06:08 -0700

csiph-web