# ECMAScript TC39 - Iterators

The ECMAScript [TC39](https://tc39.es/) committee gathered last week in Tokyo and they have analyzed the new language proposals and moved to one of the five maturity stages they have to go through before they are officially adopted in the language this time.

* STAGE 0 - Strawman Idea
    
* STAGE 1 - Proposal Concept
    
* STAGE 2 - Draft Specs
    
* STAGE 3 - Candidate Implementation
    
* STAGE 4 - Finished
    

Today we will see about Iterator Helpers which reached STAGE 4 and now they are now considered feature complete with plan to merge them in the official specification soon.

Iterators are useful way to represent large or possibly infinite enumerable datasets but they lack helpers which makes them as easy as to use arrays and other finite data structures.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729420488932/3b4ba9e8-8952-425a-96b7-798fc616a0db.png align="center")

So the proposal introduces a collection of new methods on the iterator prototype to allow general usage and consumption of iterators.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729420505622/38807d59-a525-4e53-9c45-323a8ae07078.png align="center")

The exposed methods are similar to what you have already used to and remember that all of the iterator producing methods are lazy which means they will consume the iterator when it is needed

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729420521277/3ed5d362-55a6-41b7-a986-57e303fca88e.png align="center")

### Iterator Sequencing

ITERATOR Sequencing proposal which has reached STAGE 2.7.

This usecase is straight forward often you have two or more iterators the values of which you would like to consume in a sequence as if they were a single iterator

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729421825777/e2d03a50-f456-4351-a846-c94c6ed97731.png align="center")

A common solution in other libraries is to expose a concat method, and this is what the proposal of Javascript also looks like

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1729421847214/e04ebfdb-1a3f-4c9b-9e64-cab6e051d714.png align="center")

Note: These features are not in the standard yet and some of them might never end up being adopted
