We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b1f623 commit ca0ff97Copy full SHA for ca0ff97
README.md
@@ -2096,11 +2096,13 @@ Other Style Guides
2096
const foo = a ? a : b;
2097
const bar = c ? true : false;
2098
const baz = c ? false : true;
2099
+ const quux = a != null ? a : b;
2100
2101
// good
2102
const foo = a || b;
2103
const bar = !!c;
2104
const baz = !c;
2105
+ const quux = a ?? b;
2106
```
2107
2108
<a name="comparison--no-mixed-operators"></a>
0 commit comments