re: Compact or Verbose Codestyle? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I would not call it bizarre and it is not specific to Javascript. You can do this in lots of languages like Java, C++ and even Perl. The fact that...
 

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.

code of conduct - report abuse