Update article.md

This commit is contained in:
CyberMew 2019-02-13 15:14:25 +08:00 committed by GitHub
parent 09bc924b68
commit e95e0ba5d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -383,6 +383,8 @@ alert(item2); // Donut
The whole `options` object except `extra` that was not mentioned, is assigned to corresponding variables.
Note that `size` and `items` itself is not destructured.
![](destructuring-complex.png)
Finally, we have `width`, `height`, `item1`, `item2` and `title` from the default value.