Home > @jsplumbtoolkit/templates-2 > Recado > data
Recado.data() method
Get, or set, a value from/to an object.
Signature:
data(inObj: Record<string, any>, path: string, value?: any): any;
Parameters
Parameter | Type | Description |
---|---|---|
inObj | Record<string, any> | Object to operate on |
path | string | Path to the value to get/set |
value | any | If null, this method gets a value. Otherwise, this method sets a value. |
Returns:
any