var data = [["A", "B", "C"],["D", "E"], [1, 2]];
function combine(arr){
if(arr.length>1){
var len1=arr[0].length, len2=arr[1].length, newArr=arr.slice(0), temp=[];
for(var i=0;i
for(var j=0;j
temp.push(arr[0][i]+arr[1][j])
}
}
newArr.splice(0,2,temp);
return arguments.callee(newArr)
}
return arr[0]
}
console.log(combine(data))