title: javascript .filter only matches first array item
body: <p>I have an array of ObectID's that I am getting back from my server. I want to take that array and filter all of the projects that match those ObjectID's I have tried to map the array of ObjectID's first then use a .filter to match  all the projects that meet that condition; however it only filters the first item in the array.</p>
  <p>Here is my filter method, but as stated above it only matches the first ObjectId in the array, even though there mroe than one in the array.</p>
  <pre><code>    var projects = [{ 
       accountableStaff: [&quot;1&quot;, &quot;2&quot;]
       contact: &quot;3&quot;
       district: &quot;Texas-32&quot;
  }]
  
  
  
  const foundProjects = projects.filter(
      p =&gt; p.accountableStaff == match.params.id
    );
  </code></pre>