Closed DevilRoshan closed 4 years ago
出自小程序前端面试星球
// 以下代码输出 const value = {number: 10}; const multiply = (x => { ...value }) => { console.log(x.number *= 2); } multiply(); multiply(); multiply(value); multiply(value);
https://github.com/DevilRoshan/Question/blob/master/20200807-js-code-reference.md