Merge pull request #801 from CyberMew/patch-3

Update article.md
This commit is contained in:
Ilya Kantor 2019-02-13 13:09:48 +03:00 committed by GitHub
commit de5d580913
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.