Skip to content

Commit bd2840d

Browse files
authored
Update destructuring.md
1 parent c3a4a17 commit bd2840d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/destructuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ let [x = y, y = 1] = []; // ReferenceError: y is not defined
170170

171171
### 简介
172172

173-
解构不仅可以用于数组,还可以用于对象。
173+
解构不仅可以用于数组,还可以用于对象。需要注意的是,对象的解构赋值只是一种浅拷贝。
174174

175175
```javascript
176176
let { foo, bar } = { foo: 'aaa', bar: 'bbb' };

0 commit comments

Comments
 (0)