mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 12:18:00 -05:00
Merge pull request #615 from winterbe/fix15
Fix syntax highlighting in section 15
This commit is contained in:
12
README.md
12
README.md
@@ -1164,12 +1164,12 @@ Other Style Guides
|
||||
|
||||
eslint rules: [`eqeqeq`](http://eslint.org/docs/rules/eqeqeq.html).
|
||||
|
||||
+ **Objects** evaluate to **true**
|
||||
+ **Undefined** evaluates to **false**
|
||||
+ **Null** evaluates to **false**
|
||||
+ **Booleans** evaluate to **the value of the boolean**
|
||||
+ **Numbers** evaluate to **false** if **+0, -0, or NaN**, otherwise **true**
|
||||
+ **Strings** evaluate to **false** if an empty string `''`, otherwise **true**
|
||||
+ **Objects** evaluate to **true**
|
||||
+ **Undefined** evaluates to **false**
|
||||
+ **Null** evaluates to **false**
|
||||
+ **Booleans** evaluate to **the value of the boolean**
|
||||
+ **Numbers** evaluate to **false** if **+0, -0, or NaN**, otherwise **true**
|
||||
+ **Strings** evaluate to **false** if an empty string `''`, otherwise **true**
|
||||
|
||||
```javascript
|
||||
if ([0]) {
|
||||
|
||||
Reference in New Issue
Block a user