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. Dmitry On Sunday, September 28, 2014, Rick Waldron <[email protected]> wrote: > > > On Sun, Sep 28, 2014 at 11:28 AM, Mark Volkmann <[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> 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 > https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-04/apr-9.md#51-objectentries-objectvalues > I will complete the necessary tasks for Stage 1 at next meeting. > > Rick > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

