I am trying to create a loop in Nodejs/Javascript that performs 10 batches of functions at a time.
For example:
for(let i =0 ; i < 40 ; i++){ if(