v153 · iterator join

What the separator does to your values

The proposal defines Iterator.prototype.join to behave exactly as Array.prototype.join does. So rather than tell you the rules, this page runs both on the same input and shows you where they agree — which, if the implementation is right, is everywhere.

The same input, both ways

Each case, joined as an array and as an iterator
values Array.prototype.join iterator join agree?

The left column is the platform speaking: it is a real Array.prototype.join call in this browser, and it is the normative reference the proposal points at. If a row ever disagreed, the right column would be the thing that is wrong.

the rules this produces

see also