-
Notifications
You must be signed in to change notification settings - Fork 0
JSOCRUD.API
Table of Contents generated with DocToc
jsocrud module
- Source:
-
Gets the value from the given object at the given path
Name Type Description object
Object Object from which data is to be retrieved
path
String Path in the object where the desired data exists (e.g. ["foo"][2].bar)
defaultReturnValue
Object | Array | String | Boolean | Number Optional default return value if this.get() retrieves undefined or an error occurs. User beware: if undefined is passed as this argument, this function will act as if no default return value was set.
- Source:
Value in the object at the specified path
- Type
- Object | Array | String | Boolean | Number
-
Attempts to insert the given value into the given object at the given path. If attempting insert a deep value, all layers to that path must already exist in the object.
Name Type Description object
Object Object in which to insert the value
path
String Path in the object to set the value - Example: ["foo"][2].bar
value
Object | Array | String | Boolean | Number Value to insert into the object
- Source:
Object after insertion
- Type
- Object
-
Deletes data from an object at the specified path
Name Type Description object
Object Object from which data is to be deleted
path
String Path in the object to delete (e.g. ["foo"][2].bar)
- Source:
Object after removal
- Type
- Object
-
Sets the given value in the given object at the given path
Name Type Description object
Object Object in which value will be set
path
String Path in the object to set the value (e.g. ["foo"][2].bar)
value
Object | Array | String | Boolean | Number Value to set in the object
- Source:
Object after setting value
- Type
- Object