mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
Update function.md
This commit is contained in:
+1
-1
@@ -411,7 +411,7 @@ rest // ["bar","baz"]
|
||||
const [...butLast, last] = [1, 2, 3, 4, 5];
|
||||
// 报错
|
||||
|
||||
const [first, ..., last] = [1, 2, 3, 4, 5];
|
||||
const [first, ...middle, last] = [1, 2, 3, 4, 5];
|
||||
// 报错
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user