mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
typo
typo
This commit is contained in:
parent
b2182920bb
commit
fcdea67264
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user