coderef

Iterator.zip() and Iterator.zipKeyed()Limited availability

The Iterator.zip() and Iterator.zipKeyed() static methods return new iterators that aggregate items from multiple iterables. You can use them to iterate jointly, to get all of the items at the same position in each iterable.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–152Not supported
153+Supportedsince Sep 8, 2026
Current: 155
Edge
12–152Not supported
153+Supportedsince Sep 11, 2026
Current: 154
Firefox
1–147Not supported
148+Supportedsince Feb 24, 2026
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–152Not supported
153+Supportedsince Sep 8, 2026
Current: 155
Firefox Android
4–147Not supported
148+Supportedsince Feb 24, 2026
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Safari, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: zip.

Feature detection

JS · check before using
if ("zipKeyed" in Iterator || ("prototype" in Iterator && "zipKeyed" in Iterator.prototype)) {
  // Iterator.zipKeyed is available
}

Documentation (MDN)

Specification

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Iterator.zip153153148✕153148✕
Iterator.zipKeyed153153148✕153148✕