title: Object.assign() ignore undefined or empty values
body: <p>I'm using <code>Object.assign()</code> to add attributes to HTML</p>
  
  <pre><code>const { attr1, attr2, attr3  } = attributes;
  
  return Object.assign({ 
      ['data-attr-1']: attr1,
      ['data-attr-2']: attr2, 
      ['data-attr-3']: attr3,
  });
  </code></pre>
  
  <p>If a value is empty it is still creating the HTML attribute. Is it possible to ignore properties with an empty value? </p>
  
  <p>Note: I can use only the <code>Object.assign()</code> for this</p>