Javascript ES6 - Use the Rest Operator with Function Parameters