[guide] Fix typo from #1058

This commit is contained in:
Guillaume Verbal
2016-09-12 19:08:10 +08:00
committed by Jordan Harband
parent 2a28b9c82f
commit 6cdda0737e

View File

@@ -849,14 +849,14 @@ Other Style Guides
```js
// bad
['get', 'post', 'put'].map(number => Object.prototype.hasOwnProperty.call(
['get', 'post', 'put'].map(httpMethod => Object.prototype.hasOwnProperty.call(
httpMagicObjectWithAVeryLongName,
httpMethod
)
);
// good
['get', 'post', 'put'].map(number => (
['get', 'post', 'put'].map(httpMethod => (
Object.prototype.hasOwnProperty.call(
httpMagicObjectWithAVeryLongName,
httpMethod