function zip(arr1, arr2) {
    var zipped = [];
    for (var i = 0; i < Math.min(arr1.length, arr2.length); i++) {
        zipped.push([arr1[i], arr2[i]]);
    }
    return zipped;
}
// Zip two arrays together a la Python
Zip two arrays together a la Python
Zip two arrays together a la Python
function zip(arr1, arr2) {
    var zipped = [];
    for (var i = 0; i < Math.min(arr1.length, arr2.length); i++) {
        zipped.push([arr1[i], arr2[i]]);
    }
    return zipped;
}
function zip ( arr1 , arr2 ) { var zipped = [ ] ; for ( var i = 0 ; i < Math . min ( arr1 . length , arr2 . length ) ; i ++ ) { zipped . push ( [ arr1 [ i ] , arr2 [ i ] ] ) ; } return zipped ; }
Zip two arrays together a la Python
Zip two arrays together a la Python