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

Update function.md

This commit is contained in:
Kang Li 2015-06-07 11:38:51 +08:00
parent db07394071
commit 4c2c248bee

View File

@ -411,7 +411,7 @@ rest // ["bar","baz"]
const [...butLast, last] = [1, 2, 3, 4, 5]; 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];
// 报错 // 报错
``` ```