Skip to content

Commit 1c682e0

Browse files
committed
Merge pull request ruanyf#216 from UFOwl/patch-4
Update object.md
2 parents b299d21 + d1983dc commit 1c682e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/object.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ x.a.b // 2
924924

925925
上面代码中,`x`是Rest解构赋值所在的对象,拷贝了对象`obj``a`属性。`a`属性引用了一个对象,修改这个对象的值,会影响到Rest解构赋值对它的引用。
926926

927-
另外,Rest解构赋不会拷贝继承自原型对象的属性
927+
另外,Rest解构赋值不会拷贝继承自原型对象的属性
928928

929929
```javascript
930930
let o1 = { a: 1 };

0 commit comments

Comments
 (0)