title: filter array based on ObjectId
body: <p>So I have 2 arrays here, let say</p>
  <pre><code>const users = [{_id:ObjectId(&quot;6274fb5b82bcc9b2ccc0a361&quot;), name:p1, age:10}, 
                 {_id:ObjectId(&quot;6274fbc382bcc9b2ccc0a362&quot;), name:p2, age:15},
                 {_id:ObjectId(&quot;6277a3d5b66c061096222bbd&quot;)}, name:p3, age:20];
  
  const filterArray = [ObjectId(&quot;6274fbc382bcc9b2ccc0a362&quot;),ObjectId(&quot;6277a3d5b66c061096222bbd&quot;)];
  </code></pre>
  <p>I want to filter result based on matching ObjectId, here's what I'm trying to do</p>
  <pre><code>const filteredUsers = users.filter(user=&gt; !!filterArray.includes(user._id));
  </code></pre>
  <p>I'm expecting this result</p>
  <pre><code>filteredUsers = [{_id:ObjectId(&quot;6274fbc382bcc9b2ccc0a362&quot;), name:p2, age:15},
                   {_id:ObjectId(&quot;6277a3d5b66c061096222bbd&quot;)}, name:p3, age:20]
  </code></pre>