Merge pull request #309 from harishekhar/patch-1

Modified just a small comment
This commit is contained in:
Ilya Kantor 2017-12-16 11:27:15 +03:00 committed by GitHub
commit ef94a0e593
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -478,8 +478,8 @@ Please note that such destructuring assumes that `showMenu()` does have an argum
```js
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: