From ba10353e9b34f44afbd8b4a2ecdff923356a2ae7 Mon Sep 17 00:00:00 2001 From: Harrison Shoff Date: Sun, 14 Feb 2016 14:50:49 -0800 Subject: [PATCH] [eslint-v2][arrow functions] improve examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e5ed8a37..e2b48378 100644 --- a/README.md +++ b/README.md @@ -821,13 +821,13 @@ Other Style Guides ```js // bad - const isActive = item => item.height > 256 ? true : false; + const itemHeight = item => item.height > 256 ? item.largeSize : item.smallSize; // bad - const isActive = (item) => item.height > 256 ? true : false; + const itemHeight = (item) => item.height > 256 ? item.largeSize : item.smallSize; // good - const isActive = item => { return item.height > 256 ? true : false; } + const itemHeight = item => { return item.height > 256 ? item.largeSize : item.smallSize; } ``` **[⬆ back to top](#table-of-contents)**