LocalStorage
Save data to localStorage
Set
Saves one value with a specified name. Returns value
Parameters | Type | Description | Default Value |
---|---|---|---|
name | string |
The name of the value | - |
value | all types |
The value to be saved | - |
Get
Gets the value from the specified name. Returns false
if it doesnt exist if it exists returns value
Parameters | Type | Description | Default Value |
---|---|---|---|
name | string |
The name of the value | - |