LocalStorage Class
Utils to access the browser local storage.
Methods
delete
(
static
-
key
Delete a key from the local storage.
Parameters:
-
key
String
exists
(
Boolean
static
-
key
Check if a key exists in the local storage.
Parameters:
-
key
String
Returns:
Boolean:
True if the key exists false otherwise.
get
(
Object
static
-
key
Get value from the local storage.
Parameters:
-
key
String
Returns:
Object:
Value obtained from the storage.
set
(
static
-
key
-
value
Store value in the local storage.
Parameters:
-
key
String -
value
Object