how to take an item within a localstorage and compare it code example
Example: javascript clear localstorage
window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item
window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item