title: Filtering an array of objects from an array
body: <p>I have an array of objects <code>lookups</code> and an array <code>filters</code>. Now I want to filter the array from an array of objects using the object attribute <code>name</code>.</p>
  <p>I used <code>filter</code> and <code>some</code> but I could not get the expected result.</p>
  <p><strong>EXPECTED RESULT:</strong></p>
  <p><code>[{id: 3, name: &quot;Linkedin&quot;}]</code></p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let lookups = [
  {id: 1, name: "Twitter"},
  {id: 2, name: "Facebook"},
  {id: 3, name: "Linkedin"}
  ]
  
  let filters = ["Facebook", "Twitter"]
  
  const filtered = lookups.filter(lookup =&gt; filters.some(filter =&gt; filter.toLowerCase() != lookup.name.toLowerCase()));
  
  console.log(filtered)</code></pre>
  </div>
  </div>
  </p>