From 97155eaf0a88d70321391726dee24776ce08b666 Mon Sep 17 00:00:00 2001 From: Harrison Shoff Date: Sat, 20 Feb 2016 23:39:29 -0800 Subject: [PATCH] [eslint-v2][arrays] fix example --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e89fc1cd6a..e10cca35ea 100644 --- a/README.md +++ b/README.md @@ -374,7 +374,7 @@ Other Style Guides }); // bad - inbox].filter((msg) => { + inbox.filter((msg) => { const { subject, author } = msg; if (subject === 'Mockingbird') { return author === 'Harper Lee'; @@ -384,15 +384,14 @@ Other Style Guides }); // good - [1, 2, 3].filter((x) => { - inbox].filter((msg) => { - const { subject, author } = msg; - if (subject === 'Mockingbird') { - return author === 'Harper Lee'; - } + inbox.filter((msg) => { + const { subject, author } = msg; + if (subject === 'Mockingbird') { + return author === 'Harper Lee'; + } - return false; - }); + return false; + }); ``` **[⬆ back to top](#table-of-contents)**