Brushtail
JS AST rewriter for tail call elimination. Try it below or
get it from GitHub
.
function count(from, to) { if(from >= to) return from; return count(from + 1, to); } console.log(count(0, 1000000));
Eliminate tail calls