Skip to content

zip

zip<B>(other): <A>(data) => readonly readonly [A, B][]

Defined in: Core/Arr.ts:241

Pairs up elements from two arrays. Stops at the shorter array.

B

readonly B[]

<A>(data): readonly readonly [A, B][]

A

readonly A[]

readonly readonly [A, B][]

pipe([1, 2, 3], Arr.zip(["a", "b"])); // [[1, "a"], [2, "b"]]