title: Migrate from Immutable to Immer, missing object.filter()
body: <p>I'm investigating how much work it would be to migrate my React-Native app from Immutable.js to Immer. A lot of problems arise, but I'll address them one by one here at SO.</p>
  <h3>Problem #1: object.filter()</h3>
  <p>An Immutable.Map can be iterated just like an array with map and filter. Plain JS objects cannot. Here is one way to solve this, but I wonder if there are better ways? Is this performant?</p>
  <p>The result fom this will be memoized with ReSelect.
  All my items has an &quot;id&quot; property, which will be the same as the key.</p>
  <pre><code>const myCollection = {
    1: {id:1, name: 'abc'}
    2: {id:2, name: 'def'}
  }
  
  const filteredCollection = Object.fromEntries(
    Object.entry(myCollection)
      .filter(item =&gt; item.someValue === 'filter-criteria')
      .map(item =&gt; [item.id, item]
  )
  </code></pre>