Thanks to visit codestin.com Credit goes to github.com
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 78af93b commit b67b6e4Copy full SHA for b67b6e4
packages/eslint-plugin/docs/rules/prefer-optional-chain.md
@@ -61,8 +61,8 @@ foo && foo.a && foo.a.b && foo.a.b.c;
61
foo && foo['a'] && foo['a'].b && foo['a'].b.c;
62
foo && foo.a && foo.a.b && foo.a.b.method && foo.a.b.method();
63
64
-(((foo || {}).a || {}).b {}).c;
65
-(((foo || {})['a'] || {}).b {}).c;
+(((foo || {}).a || {}).b || {}).c;
+(((foo || {})['a'] || {}).b || {}).c;
66
67
// this rule also supports converting chained strict nullish checks:
68
foo &&
0 commit comments