JS
See the Pen thecodelog.com - ES6 Rest Parameters 1 by Deano (@deangilewicz) on CodePen.
There are a couple of differences between rest parameters and the arguments object: a) rest parameters are only the ones that haven’t been given a separate name, while the arguments object contains all arguments passed to the function, b) the arguments object is not a real array, while rest parameters are Array instances.
Rest parameters also work well with destructuring.
See the Pen thecodelog.com - ES6 Rest Parameters 2 by Deano (@deangilewicz) on CodePen.