Stolen from https://dev.to/chrismilson/zip-iterator-in-typescript-ldm
Rest
Some common usages:
const firstWay = [...zip(a, b)];const secondWay = Array.from(zip(a, b)); Copy
const firstWay = [...zip(a, b)];const secondWay = Array.from(zip(a, b));
const mappedArray = Array.from(zip(a, b), mapFn); Copy
const mappedArray = Array.from(zip(a, b), mapFn);
Generated using TypeDoc
Stolen from https://dev.to/chrismilson/zip-iterator-in-typescript-ldm