JSFiddle - React, Tailwind, and code Playground
JavaScript
let icbtSyncs = 0;
let cont = 0;
for (const [typeId, icbts] of icbtsGroupedByUser) {
if (++icbtSyncs > SYNC_ICBT_BATCH_SIZE) {
break;
}
}
let icbtSyncs = 0;
let cont = 0;
for (const [typeId, icbts] of icbtsGroupedByUser) {
if (++icbtSyncs > SYNC_ICBT_BATCH_SIZE) {
break;
}
}