Configuration for the database
Find all specific entry in an array/object
base dataPath from where to start searching
method to filter the result and find the wanted entry. Receive the entry and it's index.
Find a specific entry in an array/object
base dataPath from where to start searching
method to filter the result and find the wanted entry. Receive the entry and it's index.
Convert a router style path to a normal path By default propertyName to search is "id"
router based path to a correct base path
name of the property to look for searchValue
Returns the index of the object that meets the criteria submitted. Returns -1, if no match is found.
base dataPath from where to start searching
value to look for in the dataPath
name of the property to look for searchValue
Return the index of the value inside the array. Returns -1, if no match is found.
base dataPath from where to start searching
value to look for in the dataPath
Same as getData but with your own object type and a possible default value when we can't find the data path
path of the data to retrieve
Optional
defaultValue: Tvalue to use when the dataPath doesn't lead to data
JSONDB Constructor