DEV Community

Discussion on: JavaScript Best Practices — Rest Operator

Collapse
 
aumayeung profile image
John Au-Yeung

I think it's a great use of the rest syntax.

Anything is better than using arguments to get the arguments.

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)