Pisahkan tabel oleh sertain jumlah entitas javascript

var i,j, temporary, chunk = 10;
for (i = 0,j = array.length; i < j; i += chunk) {
    temporary = array.slice(i, i + chunk);
    // do whatever
}
Tense Thrush