That "feature" would be better with an explicit language construct such as *args or params args[], though. As with so many complaints about JavaScript, it's the default behaviour that is a problem.
function(param1, param2, ...rest) {}
[0] http://ariya.ofilabs.com/2013/03/es6-and-rest-parameter.html