ES6 iteration over object values
Mark Volkmann
r.mark.volkmann at gmail.com
Fri Mar 14 17:16:39 PDT 2014
Does ES6 add any new ways to iterate over the values in an object?
I've done a lot of searching, but haven't seen anything.
I'm wondering if there is something more elegant than this:
Object.keys(myObj).forEach(function (key) {
let obj = myObj[key];
// do something with obj
});
--
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140314/91651210/attachment-0001.html>
More information about the es-discuss
mailing list