Private
storageGets the value from localStorage for the given key, or the default value if the key is not found.
Optional
key: PathThe key to get from localStorage.
Optional
defaultValue: TThe default value to return if the key is not found.
The value from localStorage or the default value.
Clears the localStorage for the given key or all keys if no key is provided.