| description | removeValue() reference |
|---|---|
| toc_max_heading_level | 2 |
The removeValue() function clears the value associated with a specified key, which was previously stored in the browser's local storage using the storeValue() function.
removeValue(key: string)A string containing the key name that acts as a unique identifier to access the associated value.
Example:
If you want to remove the value with key isActive, you can use the removeValue() function using a JS Object as shown below:
export default {
deleteStore: () => {
storeValue("isActive", true)
removeValue("isActive")
}
}