Skip to content

Commit 6583714

Browse files
authored
Update object.md
这两段不知所云的英文插进代码段要干什么
1 parent cdc7e48 commit 6583714

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/object.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,8 +1426,6 @@ let newVersion = {
14261426
```javascript
14271427
let aWithDefaults = { x: 1, y: 2, ...a };
14281428
// 等同于
1429-
even if property keys don’t clash, because objects record insertion order:
1430-
14311429
let aWithDefaults = Object.assign({}, { x: 1, y: 2 }, a);
14321430
// 等同于
14331431
let aWithDefaults = Object.assign({ x: 1, y: 2 }, a);
@@ -1447,8 +1445,6 @@ const obj = {
14471445
```javascript
14481446
{...{}, a: 1}
14491447
// { a: 1 }
1450-
even if property keys don’t clash, because objects record insertion order:
1451-
14521448
```
14531449

14541450
如果扩展运算符的参数是`null``undefined`,这两个值会被忽略,不会报错。

0 commit comments

Comments
 (0)