title: Filter Array according to 'id'
body: <p>I'm having array of friendIDS &amp; groupIDS. From this I have to filter matching friend &amp; group with that ID from my other array which contains Friend, Groups.</p>
  
  <pre><code>    let friendIDS = ["DW548ADS456", "DSAD86465"]
      let groupIDS = ["RQ13131"]
  </code></pre>
  
  <p>now how to filter my items so that I will have Group &amp; Friend which has above matching IDs</p>
  
  <p>I'm trying it by this way but don't know how to search for matching ID in that filter</p>
  
  <pre><code>var items = [Conversation]()
  
      let friendIDS = ["DW548ADS456", "DSAD86465"]
      let groupIDS = ["RQ13131"]
      self.filtereditems =  self.items.filter {
          $0.groupDetails?.groupID == ""
          $0.user?.userId == ""
      }
  </code></pre>
  
  <p>Conversation class </p>
  
  <pre><code>class Conversation {
  
      //MARK: Properties
      let user: User?
      let groupDetails: GroupDetails?
  }
  
  
  struct User:  JSONDeserializable {
  
      var userId: String = ""
  init(userId: String)
          self.userId = userId
      }
  
  class GroupDetails: NSObject {
  
  
      //MARK: Properties
      let groupID: String
      init(groupID: String){
          self.groupID = groupID
  }
  </code></pre>