title: Set default value of Javascript object attributes
body: <p>Is there a way to set the default attribute of a Javascript object such that:</p>
  <pre><code>let emptyObj = {};
  // do some magic
  emptyObj.nonExistingAttribute // =&gt; defaultValue
  </code></pre>