Skip to main content

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

ParameterTypeDescription
inObjRecord<string, any>Object to operate on
pathstringPath to the value to get/set
valueanyIf null, this method gets a value. Otherwise, this method sets a value.

Returns:

any