Iterator sequencing

Specification: proposal-iterator-sequencing

Modules

esnext.iterator.concat

class Iterator {
  concat(...items: Array<IterableObject>): Iterator<any>;
}

CommonJS entry points

core-js/proposals/iterator-sequencing
core-js(-pure)/actual|full/iterator/concat

Example

Iterator.concat([0, 1].values(), [2, 3], function * () {
  yield 4;
  yield 5;
}()).toArray(); // => [0, 1, 2, 3, 4, 5]