title: checking inline value is exists, set to object property in declaring object _ JavaScript
body: <p>suppose we want to create a new object.</p>
  <pre><code>let myObject = {};
  </code></pre>
  <p>and we have some property that exists in another object like :</p>
  <pre><code>let b = { foo: &quot;bar&quot;};
  </code></pre>
  <p>is it possible to check if b?.foo append foo to myObject inline in the declaration of the object?</p>
  <p>something like this :</p>
  <pre><code>let myObject = { b?.foo }
  </code></pre>