This commit is contained in:
Ming Hei Lau 2017-07-06 16:44:47 -07:00
parent edfb8248f1
commit 1e44a05fd1

View file

@ -53,7 +53,7 @@ Unwanted elements of the array can also be thrown away via an extra comma:
let [, , title] = ["Julius", "Caesar", "Consul", "of the Roman Republic"];
*/!*
alert( title ); // Imperator
alert( title ); // Consul
```
In the code above, the first and second elements of the array are skipped, the third one is assigned to `title`, and the rest is also skipped.