Update README.md

Add parentheses around argument, to be consistent with section 8.4
(include parentheses when using braces).
This commit is contained in:
Jason Bacchetta
2016-03-09 19:14:00 -06:00
parent 4709e644c0
commit 2ff6c427b0

View File

@@ -874,7 +874,7 @@ Other Style Guides
const itemHeight = (item) => item.height > 256 ? item.largeSize : item.smallSize;
// good
const itemHeight = item => { return item.height > 256 ? item.largeSize : item.smallSize; }
const itemHeight = (item) => { return item.height > 256 ? item.largeSize : item.smallSize; }
```
**[⬆ back to top](#table-of-contents)**