On Sun, Feb 12, 2012 at 8:50 PM, bradley griffiths <
[email protected]> wrote:
> I normally do:
>
> Object.keys(myobject).forEach(function(key){
> myobject[key];
> });
>
> Is this a bad way to do it?
>
In environments that support it, it seems like one of the very fastest
approaches.
What is interesting, from my superficial test runs at
http://jsperf.com/obj-property-iteration is that Chrome, atleast, seems
able to optimize the work-payload quite impressively.
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en