var GetShowList = function (list) { var result = []; for (var i = 0; i < list.length; i++) { if (i % 2 == 0) { result.push([]); } result[result.length - 1].push(list[i]); } return result; }