Recursive array zip in Javascript.
function zip(a, b) { return a.length ? [[a[0], b[0]]].concat(zip(a.slice(1), b.slice(1))) : [] }