JavaScript Best Practices — Rest Operator

John Au-Yeung
May 23, 2020 · 4 min read
Photo by Toa Heftiba on Unsplash

JavaScript is a very forgiving language. It’s easy to write code that runs but has mistakes in it.

In this article, we’ll look at why using the rest operators are better than their older alternatives.

Using Rest Parameters Instead of the arguments Object