I am trying to remove a single value from my localStorage array. The value I am trying to remove is 30
localStorage Values: ["70","30"]
var items = JSON.parse(localStorage["favorite"]);
for (var i =0; i< items.length; i++) {
    var item = JSON.parse(items[i]);
    if (item == 30) {
      items.slice(i);
      break;
    }
}
localStorage.setItem("favorite", items);
 
    