From ce4d00e12a4d29fb214f615407addcfbf1ea48e5 Mon Sep 17 00:00:00 2001 From: zharley18 Date: Tue, 10 Jan 2017 19:19:07 -0500 Subject: [PATCH] Remove round brackets in arrow function with one input --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 060792c5..9e6a1418 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ Explicit is better than implicit. **Bad:** ```javascript const locations = ['Austin', 'New York', 'San Francisco']; -locations.forEach((l) => { +locations.forEach(l => { doStuff(); doSomeOtherStuff(); // ... @@ -132,7 +132,7 @@ locations.forEach((l) => { **Good**: ```javascript const locations = ['Austin', 'New York', 'San Francisco']; -locations.forEach((location) => { +locations.forEach(location => { doStuff(); doSomeOtherStuff(); // ...