title: Remove elements in array from array using lodash
body: <p>I want to remove users in the <code>removeUser</code> array based on <code>userName</code> values in the <code>removeUser</code> array using lodash. Here's my input data:</p>
  
  <pre><code>{"users":[
  {"title":"Mr", "firstName":"John", "lastName":"Doe", "email":"jdoe@google.com", "userName" : "jdoe", "groups": [{"name": "Manager"}]},
  {"title":"Ms", "firstName":"Anna", "lastName":"Smith","email":"asmith@google.com", "userName" : "asmith", "groups": [{"name": "Administrator"}, {"name": "Manager"}]},
  {"title":"Mr", "firstName":"Peter", "lastName":"Jones", "email":"pjones@google.com", "userName" : "pjones", "groups": [{"name": "Administrator"}, {"name": "Manager"}]},
  {"title":"Ms", "firstName":"Jenny", "lastName":"Otter","email":"jotter@google.com", "userName" : "jotter", "groups": [{"name": "Administrator"}, {"name": "Manager"}]}
  ]}
  
  var removeUser = ['jdoe', 'asmith'];  //usernames of users to be removed
  </code></pre>
  
  <p>This is what I have but I need a foreach loop:</p>
  
  <pre><code>_remove(users, { userName: [removeUser]})
  </code></pre>
  
  <p>so that I end up with an updated <code>users</code> array along the lines of:</p>
  
  <pre><code>{"users":[
  {"title":"Mr", "firstName":"Peter", "lastName":"Jones", "email":"pjones@google.com", "userName" : "pjones", "groups": [{"name": "Administrator"}, {"name": "Manager"}]},
  {"title":"Ms", "firstName":"Jenny", "lastName":"Otter","email":"jotter@google.com", "userName" : "jotter", "groups": [{"name": "Administrator"}, {"name": "Manager"}]}
  ]}
  </code></pre>