in super-mode-calculator/src/lib/dynamo.ts [73:85]
function buildBatches<T>(
records: T[],
batchSize = DYNAMO_MAX_BATCH_SIZE,
): T[][] {
const tmp = [...records];
const batches = [];
while (tmp.length) {
batches.push(tmp.splice(0, batchSize));
}
return batches;
}