[Solved] How do I stop a function from running early in NodeJS? [duplicate]
I guess you want to stop the execution of the setInterval, for that you could return the setInterval’s result from the function and pass it to a clearInterval to avoid it’s execution. For this, you might also have to add a check to see if the function has been started or not But for now, … Read more