title: Javascript filter method, Remove all Items with matching values in array
body: <p>I'm trying to remove all items if they match with array values but it's removing only one item. How can i remove all items with filter method or what is the best way to achieve this.</p>
  
  <pre><code>let data = [
      {
          id: '1',
          title: 'ABC'
      },
      {
          id: '2',
          title: 'DEF'
      },
      {
          id: '3',
          title: 'GHI'
      },
      {
          id: '4',
          title: 'JKL'
      },
      {
          id: '5',
          title: 'MNO'
      }
  ]
  
  
  data = data.filter(post =&gt; {
  
      let remove = ['2', '4', '5']
  
      for(let i = 0; i &lt; remove.length; i++) {
          return post.id !== remove[i]
      }
  
  })
  
  console.log(data)
  </code></pre>
  
  <p>Thanks</p>