Skip to content

Simplify listAux #36

@nixnax

Description

@nixnax

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))});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions