DEV Community

Discussion on: Compact or Verbose Codestyle?

Collapse
 
nomaed profile image
Nomæd

They are quite handy when you need to get a property nested in an object, like let foo = obj && obj.child && obj.child.foo || "", especially when a default fallback value is needed.
But when it's used as a condition, it's a bit annoying and IMO much less readable at first glance.