montagejs / collections

This package contains JavaScript implementations of common data structures with idiomatic interfaces.
http://www.collectionsjs.com
Other
2.09k stars 185 forks source link

iterate not working with for..of #175

Open valerydev opened 7 years ago

valerydev commented 7 years ago

I don't get what iterator protocol version 1 means but I think it should work with for..of

kriskowal commented 7 years ago

We are in agreement that Collections should be iterable with for..of.

Iterators as implemented in Collections anticipated but predated the final specification of for..of.

We would need to revisit iterators to make this work, and that may or may not require breaking changes and a major version bump.

Volunteer assistance is very much welcome.