title: Array Subtract From JSon Object JavaScript
body: <p>I have a Json Object array</p>
  
  <pre><code>   posturlContent = [
          { "Title": "Bbc news live", "Content": "&lt;div&gt;this is a test BBC &lt;/div&gt;", "Uri": "http://bbc.co.uk" },
          { "Title": "CNN news live", "Content": "&lt;div&gt;this is a test CNN&lt;/div&gt;", "Uri": "http://cnn.com" },
          { "Title": "Youtube news live", "Content": "&lt;div&gt;this is a test Youtube &lt;/div&gt;", "Uri": "http://youtube.com" },
      ];
  </code></pre>
  
  <p>I have a JS array</p>
  
  <pre><code>uris =["http://cnn.com", "http://abcnews.com",...]
  </code></pre>
  
  <p>I need an Output of posturlContent only of items that are in uris hence below.</p>
  
  <pre><code>   posturlContent = [
  
          { "Title": "CNN news live", "Content": "&lt;div&gt;this is a test CNN&lt;/div&gt;", "Uri": "http://cnn.com" }
  
      ];
  </code></pre>
  
  <p>I tried using this but getting back empty posturlContent</p>
  
  <pre><code>    $.each(uris, function(){
          var siteUrl = this.valueOf();
          posturlContent = $.grep(posturlContent, function(item){
              return item.Uri.toLowerCase() != siteUrl.toLowerCase();
          });
      })
  </code></pre>