UI Deploy

Curated, Short, Web UI Dev we Love.

ES6 Tail Call Optimization Explained

A tail call optimization may occur when the last thing to evaluate before a function returns is a function invocation. In certain circumstances, the interpreter can the reuse current stack frame for the function call instead of creating a new one. Below I will explain what circumstances are necessary and why this is an optimization.

view source

Advertisement