Providing object iterators beyond just Object.keys()

Emanuel Allen emanuelallen at hotmail.com
Wed May 27 16:09:01 UTC 2015


You can simply use the Symbol.iterator property to configure how you want the property and value of the object to be iterated. This will allow you to use any from of iteration; e.g. For loop while loop forEach if you do the generic way I'm thinking .

If this help. Post me some link to resources that you have found on your journey as a js dev.

JS4Lf

> On May 27, 2015, at 9:47 AM, Rick Waldron <waldron.rick at gmail.com> wrote:
> 
> No draft written, but I am the current champion. If you'd like to get something started, we can co-champion :)
> 
> Rick
>> On Tue, May 26, 2015 at 2:45 PM Michael Ficarra <mficarra at shapesecurity.com> wrote:
>> Has anyone drafted a proposal for this? Is anyone assigned as champion yet?
>> 
>>> On Tue, May 26, 2015 at 11:05 AM, Rick Waldron <waldron.rick at gmail.com> wrote:
>>> Silence because it wasn't a priority, relative to finishing ES6. It's not forgotten and still on track for ES7 development. 
>>> 
>>> Rick
>>>> On Tue, May 26, 2015 at 11:59 AM Gijs Kruitbosch <gijskruitbosch at gmail.com> wrote:
>>>> Perhaps surprisingly, I had actually asked around and looked through recent threads. Apologies for not having found the previous discussions from a year ago. It seems that after the call for a strawman in the meeting notes from April 2014, there was silence? https://esdiscuss.org/topic/object-entries-in-2015 asks the same. I don't really know whether it's more useful to continue replying here or pull up that thread (is one month "old" by es-discuss standards?). Either way, it would be useful to know what the current status is, which none of the posts/notes that I saw really clarify.
>>>> _______________________________________________
>>>> es-discuss mailing list
>>>> es-discuss at mozilla.org
>>>> https://mail.mozilla.org/listinfo/es-discuss
>>> 
>>> _______________________________________________
>>> es-discuss mailing list
>>> es-discuss at mozilla.org
>>> https://mail.mozilla.org/listinfo/es-discuss
>> 
>> 
>> 
>> -- 
>> Shape Security is hiring outstanding individuals. Check us out at https://shapesecurity.com/jobs/
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150527/26278ab1/attachment.html>


More information about the es-discuss mailing list