Is there a javascript equivalent of Python\'s zip function? That is, given multiple arrays of equal lengths create an array of pairs.
For instance, if I have three
If you are fine with ES6:
const zip = (arr,...arrs) =>( arr.map( (v,i) => arrs.reduce((a,arr)=>[...a, arr[i]], [v])))