DEV Community

Discussion on: JavaScript Best Practices — Rest Operator

Collapse
 
wulymammoth profile image
David

Not necessary in JS, but this is very common in functional programming languages where loops constructs don't exist but all recursive calls are TCO (tail-call optimized)