I have a big array of objects and i want to show them in many pages and limit the number shown each page to 4 what would be the correct way to do it?
let i,j,temparray,chunk = 5;
for (i=0,j=this.yorumlar.length; i<j; i+=chunk) {
temparray = this.yorumlar.slice(i,i+chunk);
this.one = temparray
}
this code slices my array in pieces of 4 but then how can I use these slices here this.one gives me only the first 4 how can I get rest of pieces