Update article.md

This commit is contained in:
LeviDing 2020-11-15 21:19:03 +08:00 committed by GitHub
parent 75e10e203e
commit cb62d6d867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ let user = {}; // user has no address
alert(user.address ? user.address.street ? user.address.street.name : null : null);
```
That's just awful, one may even have problems understanding such code.
That's just awful, one may even have problems understanding such code.
Don't even care to, as there's a better way to write it, using the `&&` operator: