I have an array of objects like this one – [{first},{second},{third},{forth},{fifth},{sixth}}
How can I loop through the Array, and get (for each loop) the next three elements of that Array ?
For example, for the first loop I’ll get three variables that reference to {first}, {second} and {third}, for the second loop I’ll get variables that reference to {forth}, {fifth} and {sixth} …
And so on…
1 Answer