mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 06:48:05 -05:00
Update README.md
Add parentheses around argument, to be consistent with section 8.4 (include parentheses when using braces).
This commit is contained in:
@@ -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)**
|
||||
|
||||
Reference in New Issue
Block a user