mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 11:07:58 -05:00
[guide] Fix typo from #1058
This commit is contained in:
committed by
Jordan Harband
parent
2a28b9c82f
commit
6cdda0737e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user