I would like to see an example of _.zip.apply using underscore.js.
_.zip.apply
In the underscore documentation is written:
If you\'re working
You can use also a 'non-external-library' method:
Create this function:
function transpose(arr) { return Object.keys(arr[0]).map(function (c) { return arr.map(function (r) { return r[c]; }); }); }
and then:
var transposedArray = transpose(originalArray);