Closed
Description
I've found that #1931 supports this only for ES6, but it seems ES5 also can do this in any way.
var arguments = [1, 2, 3, 4, 5];
new Array(...arguments);
This can be converted to ES5:
// Thanks to: http://stackoverflow.com/a/14378462/2460034
var arguments = [1, 2, 3, 4, 5];
new (Array.bind.apply(Array, [null].concat(arguments)));
// Result: [1, 2, 3, 4, 5]