Skip to content

Instantly share code, notes, and snippets.

@dan-lee
Created September 12, 2022 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dan-lee/92e1323c1e21a1b6dd061874f692561e to your computer and use it in GitHub Desktop.
Save dan-lee/92e1323c1e21a1b6dd061874f692561e to your computer and use it in GitHub Desktop.
const zip = <A, B>(a: A[], b: B[]): Array<[A, B]> => a.map((k, i) => [k, b[i]]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment