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: 155Edge
12–152Not supported
153+Supportedsince Sep 11, 2026
Current: 154Firefox
1–147Not supported
148+Supportedsince Feb 24, 2026
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–152Not supported
153+Supportedsince Sep 8, 2026
Current: 155Firefox Android
4–147Not supported
148+Supportedsince Feb 24, 2026
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How 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-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| Iterator.zip | 153 | 153 | 148 | ✕ | 153 | 148 | ✕ |
| Iterator.zipKeyed | 153 | 153 | 148 | ✕ | 153 | 148 | ✕ |