ECMAScript 6 and Rest Parameter Mar 6, 2013 2 min read #es6 #javascript #web Handling a function with a variable number of arguments is always tricky in JavaScript. At least, we still have this arguments object which can be used to retrieve all arguments used to invoke a function. With the upcoming ECMAScript 6, no such hack is necessary anymore since we can start using its rest parameter feature.