title: Filtering NSArray of dictionaries in Swift
body: <p>I have an array of dictionaries that was pulled from a RESTful API. I currently am trying to filter out the data as needed where the "domain" is equal to "youtube.com".</p>
  
  <p>How can I filter this out? I've looked into </p>
  
  <pre><code>results.filter({
      $0["domain"] != "youtube.com"
  </code></pre>
  
  <p>but not sure how to go deeper to get it to work.</p>
  
  <p><a href="https://i.stack.imgur.com/4kgPL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4kgPL.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/F4YoE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F4YoE.png" alt="enter image description here"></a></p>