var newAry = [],ary =[1, 2, 3, 4, 5, 6, 7, 8],i=0,len = ary.length / 2;for (; i < len; i++){ newAry.push(ary.splice(0, 2))}; console.log(newAry)
[[1,2],[3,4],[5,6],[7,8]].join(",").split(",")
var newAry = [],ary =[1, 2, 3, 4, 5, 6, 7, 8],i=0,len = ary.length / 2;for (; i < len; i++){ newAry.push(ary.splice(0, 2))}; console.log(newAry)
[[1,2],[3,4],[5,6],[7,8]].join(",").split(",")