Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 793 Bytes

File metadata and controls

40 lines (26 loc) · 793 Bytes
description removeValue() reference
toc_max_heading_level 2

removeValue()

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.

Signature

removeValue(key: string)

Parameters

key

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")
            }
}