Merge pull request #309 from harishekhar/patch-1
Modified just a small comment
This commit is contained in:
commit
ef94a0e593
1 changed files with 2 additions and 2 deletions
|
@ -478,8 +478,8 @@ Please note that such destructuring assumes that `showMenu()` does have an argum
|
||||||
```js
|
```js
|
||||||
showMenu({});
|
showMenu({});
|
||||||
|
|
||||||
// that would give an error
|
|
||||||
showMenu();
|
showMenu(); // this would give an error
|
||||||
```
|
```
|
||||||
|
|
||||||
We can fix this by making `{}` the default value for the whole destructuring thing:
|
We can fix this by making `{}` the default value for the whole destructuring thing:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue