Collections and Iterators (ES6) Sample
Available in Chrome 38+ |
View on GitHub |
There are several new types of collections and ways of iterating over collections in the
draft ECMAScript 6 specification.
This sample demonstrates creating and working with two types of collections,
Map. It also demonstrates using the
for...of syntax to iterate over
each type of collection.