Files
babel/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/known-rest/expected.js
Pranav Prakash e98bb3dc60 Use new Array instead of Array for V8 optimization (#6250)
* Use new Array instead of Array for V8 optimization

* fix spacing [skip ci]

* Remove extraneous use strict clauses
2017-09-18 14:14:46 -04:00

8 lines
174 B
JavaScript

function foo() {
for (var _len = arguments.length, bar = new Array(_len), _key = 0; _key < _len; _key++) {
bar[_key] = arguments[_key];
}
return [].concat(bar);
}