From 7da28d43ad4b73264420663ebbfb83fdff2b9249 Mon Sep 17 00:00:00 2001 From: Guillaume Verbal Date: Mon, 12 Sep 2016 12:18:59 +0800 Subject: [PATCH] [Docs] update 8.3 to fix conflict with 6.2 (fixes #1058) --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0f603dba..ce0de3fd 100644 --- a/README.md +++ b/README.md @@ -849,15 +849,18 @@ Other Style Guides ```js // bad - [1, 2, 3].map(number => 'As time went by, the string containing the ' + - `${number} became much longer. So we needed to break it over multiple ` + - 'lines.' + ['get', 'post', 'put'].map(number => Object.prototype.hasOwnProperty.call( + httpMagicObjectWithAVeryLongName, + httpMethod + ) ); // good - [1, 2, 3].map(number => ( - `As time went by, the string containing the ${number} became much ` + - 'longer. So we needed to break it over multiple lines.' + ['get', 'post', 'put'].map(number => ( + Object.prototype.hasOwnProperty.call( + httpMagicObjectWithAVeryLongName, + httpMethod + ) )); ```