/array/zip
stdZips the given arrays together into pairs.
Type signature
(xs: unknown[], ys: unknown[]) => [unknown, unknown][]
Examples
zip([1, 2, 3], [4, 5, 6]);
// ⇒ [[1, 4],[2, 5],[3, 6]]
Try in REPL
Questions
- How to zip two arrays?