hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

storage-get

Retrieves a value from browser storage by key.
Parameter
Type
Description
key
string
The key to retrieve the value for
persistent
bool
Whether to use localStorage (true) or sessionStorage (false/null)
return
T
The stored value, or null if the key doesn't exist