* Correctly transform spreads to use proper concat method * Add tests to ensure array spread clones elements
8 lines
174 B
JavaScript
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);
|
|
}
|