Tail call optimization in ECMAScript 6

added by bpwndaddy
6/30/2015 3:39:39 PM

4 Kicks, 276 Views

ECMAScript 6 offers tail call optimization, where you can make some function calls without growing the call stack. This blog post explains how that works and what benefits it brings. To understand what tail call optimization (TCO) is, we will examine the following piece of code.