mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs(array): edit spread
This commit is contained in:
+1
-9
@@ -455,15 +455,7 @@ obj.foo() // "world"
|
||||
|
||||
## 对象的扩展运算符
|
||||
|
||||
《数组的扩展》一章中,已经介绍过扩展运算符(`...`)。
|
||||
|
||||
```javascript
|
||||
const [a, ...b] = [1, 2, 3];
|
||||
a // 1
|
||||
b // [2, 3]
|
||||
```
|
||||
|
||||
ES2018 将这个运算符[引入](https://github.com/sebmarkbage/ecmascript-rest-spread)了对象。
|
||||
《数组的扩展》一章中,已经介绍过扩展运算符(`...`)。ES2018 将这个运算符[引入](https://github.com/sebmarkbage/ecmascript-rest-spread)了对象。
|
||||
|
||||
### 解构赋值
|
||||
|
||||
|
||||
Reference in New Issue
Block a user