I would like the most modern way to make an array like this
const nextchunk = [];
nextchunk[0] = [0, 6];
nextchunk[1] = [7, 13];
Each nextchunk must have 7 places in it as shown. These represent a limit query later in in the code. So nextchunk[1]
gets out item 7 - 13, nextchunk[2]
gets out 14 - 20
I would like the flexibility of being able to call nextchunk[20]
at runtime and have it return the correct values.