1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 11:12:21 +00:00

Merge pull request #379 from jacty/patch-4

typo
This commit is contained in:
Ruan YiFeng 2017-04-22 08:10:59 +08:00 committed by GitHub
commit b88ff49ee9

View File

@ -591,7 +591,7 @@ rest // [2, 3, 4, 5]
const [first, ...rest] = []; const [first, ...rest] = [];
first // undefined first // undefined
rest // []: rest // []
const [first, ...rest] = ["foo"]; const [first, ...rest] = ["foo"];
first // "foo" first // "foo"