MemoryStore
get(path[, defaultValue])
Gets the property value at path of object. If the resolved value is undefined the defaultValue is used in its place.
- arguments
- path
string
- defaultValue
any
(optional)
- path
- returns
any
set(path, value)
Sets the value at path of object. If a portion of path doesn’t exist it’s created. Arrays are created for missing index properties while objects are created for all other missing properties.
- arguments
- path
string
- value
any
- path
- returns
any
update(path, updater)
This method is like set
except that accepts updater to produce the value to set.
- arguments
- path
string
- updater
(value) => any
- path
- returns
any
has(path)
Checks if path is a direct property of object.
- arguments
- path
string
- path
- returns
boolean
delete(path)
Deletes the property of the object.
- arguments
- path
string
- path
- returns
void
size()
Gets the size of collection by returning its length for array-like values or the number of own enumerable properties for objects.
- returns
number