title: How to filter object members
body: <p>Assume we have</p>
  
  <pre><code>const obj = { a: 1, b: 2, c: 3, d: 4 };
  </code></pre>
  
  <p>and we want to remove some members. For example <code>c</code> and <code>d</code>:</p>
  
  <pre><code>{ a: 1, b: 2 };
  </code></pre>
  
  <p>Is there a cleaner immutable way than</p>
  
  <pre><code>const keysToRemove = ['c', 'd'];
  Object.keys(obj)
     .filter(key =&gt; !keysToRemove.includes(key))
     .reduce((acc, key) =&gt; {
        acc[key] = obj[key];
        return acc;
     } , {});
  </code></pre>