Constructor
new Storage(id)
Parameters:
Name |
Type |
Description |
id |
int
|
Unique id for the storage key. Prefixed with "AIOT-" |
- Source:
Quick reference
Methods
getItem(path) → {*}
Get the item for a JSON path for this local storage object.
Parameters:
Name |
Type |
Description |
path |
string
|
The path |
- Source:
Returns:
-
Type
-
*
getObjectPath(object, path) → {*}
Get the item for a JSON path for the passed object.
Parameters:
Name |
Type |
Description |
object |
object
|
The object |
path |
string
|
The path |
- Source:
Returns:
-
Type
-
*
setItem(path, value)
Set the item for a JSON path for this local storage object.
Parameters:
Name |
Type |
Description |
path |
string
|
The path |
value |
*
|
The stringify-able value |
- Source:
setObjectPath(object, path, value)
Set the item for a JSON path for the passed object.
Parameters:
Name |
Type |
Description |
object |
object
|
The object |
path |
string
|
The path |
value |
*
|
The stringify-able value |
- Source: