ES6 iteration over object values

Dmitry Soshnikov dmitry.soshnikov at
Sun Sep 28 23:57:49 PDT 2014

Returning just arrays will be inconsistent with the same name methods that
sit on prototypes of Array, Map, etc.

Yes, Object.keys(...) poisons the iterators idea, but I think these better
to be iterators.

Or, if Object.values and Object.entries will start returning simple arrays
(which of cours is consistent with Object.keys), then probably the iterator
method names are better to rename. (Object.keysIterator(), or something,
don't know yet -- verbose, but does what it says)

Anyhow, since it's ES7, there's a plenty of time to discuss.


On Sunday, September 28, 2014, Rick Waldron <waldron.rick at> wrote:

> On Sun, Sep 28, 2014 at 11:28 AM, Mark Volkmann <r.mark.volkmann at
> <javascript:_e(%7B%7D,'cvml','r.mark.volkmann at');>> wrote:
>> What happened to adding the Object.values and Object.entries methods?
>> There was some discussion that led me to believe these would be in ES6. Are
>> they now targeted for ES7?
> Yes, proposed by me and always for ES7
> I will complete the necessary tasks for Stage 1 at next meeting.
> Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list