User and instance aware localstorage
- Source:
Methods
(static) getItem(name) → {null|string}
Get an item from the storage
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
- Source:
Returns:
- Type
- null | string
(static) hasItem(name) → {boolean}
Whether the storage contains items
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
- Source:
Returns:
- Type
- boolean
(static) removeItem(name, item)
Removes an item from the storage
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
item |
string |
- Source:
(static) setItem(name, item)
Add an item to the storage
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
item |
string |
- Source: