* Correctly transform spreads to use proper concat method * Add tests to ensure array spread clones elements
8 lines
107 B
JavaScript
8 lines
107 B
JavaScript
const arr = [];
|
|
|
|
arr.concat = () => {
|
|
throw new Error('Should not be called');
|
|
};
|
|
|
|
const x = [...arr];
|