function func(a, b, ...arguments) { return [a, b, arguments]; } func('a', 'b', 1, 2, 3)