Update article.md
This commit is contained in:
parent
09bc924b68
commit
e95e0ba5d0
1 changed files with 2 additions and 0 deletions
|
@ -383,6 +383,8 @@ alert(item2); // Donut
|
||||||
|
|
||||||
The whole `options` object except `extra` that was not mentioned, is assigned to corresponding variables.
|
The whole `options` object except `extra` that was not mentioned, is assigned to corresponding variables.
|
||||||
|
|
||||||
|
Note that `size` and `items` itself is not destructured.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Finally, we have `width`, `height`, `item1`, `item2` and `title` from the default value.
|
Finally, we have `width`, `height`, `item1`, `item2` and `title` from the default value.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue