1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-26 03:32:20 +00:00

Merge pull request #58 from likang/patch-2

Update function.md
This commit is contained in:
Ruan YiFeng 2015-06-16 13:53:23 +08:00
commit 172319d506

View File

@ -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];
// 报错
```