function fn(...args) { }
Rest parameters are represented by the three dots before the last parameter. It receives all extra arguments as an Array.
[...arguments]
Array.from(arguments)
Array.prototype.slice.call(arguments)
Convert iterable object to Array in JavaScript