-
Notifications
You must be signed in to change notification settings - Fork 1
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 objectObject Object from which data is to be retrieved
pathString Path in the object where the desired data exists (e.g. ["foo"][2].bar)
defaultReturnValueObject | 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 objectObject Object in which to insert the value
pathString Path in the object to set the value - Example: ["foo"][2].bar
valueObject | 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 objectObject Object from which data is to be deleted
pathString 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 objectObject Object in which value will be set
pathString Path in the object to set the value (e.g. ["foo"][2].bar)
valueObject | Array | String | Boolean | Number Value to set in the object
- Source:
Object after setting value
- Type
- Object