-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
Romain, this amazing piece of code absolutely freezes my brain!
Is there any way to break down the complexity a bit, such as getting rid of the function in a function in a function in a function?
if(i<taskNameList.length) setImmediate(function(){achieve(taskNameList[i][1],username(function(taskNameList,i,username,done) {
return function() {
setImmediate(function(){listAux(taskNameList,i+1,username,done);});
};
})(taskNameList,i,username,done))});
Reactions are currently unavailable