ponyspy,
var arr = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];
function foo(arr, row) {
var a = [];
for (var i = 0; i < row;) {
a[i] ? a[i].push(arr.shift()) : (a[i] = []);
i = ++i % row ;
if (!arr.length) return a;
}
}
alert(JSON.stringify(foo(arr, 4)))