title: LocalStorage remove item from object using JavaScript
body: <p>I would like to remove an item from localstorage object:</p>
  <pre><code>addToFavs: [{&quot;fav-name&quot;:&quot;fav-787336&quot;},{&quot;fav-name&quot;:&quot;fav-255890&quot;}]
  </code></pre>
  <p>I stored the information, then I checked if the item found, I should remove it:</p>
  <pre><code>/*** getID is the items clicked ***/
  
  var retrievedData = localStorage.getItem(&quot;addToFavs&quot;);
      
      var parseData = jQuery.parseJSON(retrievedData);
  
      $.each(parseData, function(x,y){
          if(y['fav-name'] == getID){
              console.log(getID+' found on '+x);
              console.log(parseData[x]);
              localStorage.removeItem(parseData[x]);
              console.log(x+' removed');
          } else {
              console.log(getID+' NOT NOT found on '+x);
          }
  
  }); // end $.each
  </code></pre>
  <p>Thanks in advance</p>