title: JS Remove empty keys from an object
body: <pre><code>const obj = {
    a: '123',
    b: '124',
    c: '1242414',
    d: '',
    e: '',
    f: ''
  }
  </code></pre>
  <p>What's the right way to remove keys with empty values from an <em>object</em>?</p>
  <p>Here's what I've tried, but can't finalize it..</p>
  <pre><code>Object.entries(obj).filter(item =&gt; item !== &quot;&quot;);
  </code></pre>