I'm refactoring some code. Can I replace
function next () {
// call next using setTimeout
}
next();
with
(function next () {
// call next using setTimeout
}());
next has to be initiated and from there it will call itself a certain amount of times.