iterating through object property values

Mark Volkmann r.mark.volkmann at gmail.com
Wed Dec 3 09:07:44 PST 2014


It seems the typical way to do this is:

Object.keys(myObj).forEach(key => {
  let value = myObj[key];
  // Do something with value and/or key.
});

I don't see a new way to do this in ES6.

Is it still being considered to add the methods "entries" and "values" to
Object that return iterators?

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141203/061feb2a/attachment.html>


More information about the es-discuss mailing list