Back to Arrays
zip
Combine two arrays element-wise into tuples.
Syntax
zip(a, b) → Array of (a[i], b[i]) tuples
Backends
TypeScript
Description
Combine two arrays element-wise into tuples.
Parameters
| Name | Description |
|---|---|
| a | First array |
| b | Second array |
Returns
Array of (a[i], b[i]) tuples