Is there a shortcut for b && b.c && b.c.d ? b.c.d : "default"; : <p>If I want to set a constant with a value from a nested object property that can be undefined or set it to a default value, I can do this:</p>

<pre><code>const a = b &amp;&amp; b.c &amp;&amp; b.c.d ? b.c.d : "default value";
</code></pre>

<p>I don't like this syntax because I find it unreadable. I prefer:</p>

<pre><code>const a = b.c.d || "default value";
</code></pre>

<p>But this syntax fails if <code>b</code> or <code>c</code> is not an object (undefined). Is there a syntax for this kind of need?</p>
