Skip to content

utils/relatedCalculatedHelpers ​

Functions ​

getObjectRelatedByKey() ​

getObjectRelatedByKey(obj, relatedObj, key): [any, string]

Get the object and key of a related item.

Parameters ​

obj ​

any

The object to get the related item from.

relatedObj ​

any

The object to get the related item from.

key ​

string

The key to get the related item from.

Returns ​

[any, string]

The object and key of the related item.


getObjectRelatedCalculatedByKey() ​

getObjectRelatedCalculatedByKey(obj, relatedObj, calculatedObj, key): [any, string]

Get the object and key of a calculated item.

Parameters ​

obj ​

any

The object to get the calculated item from.

relatedObj ​

any

The object to get the related item from.

calculatedObj ​

any

The object to get the calculated item from.

key ​

string

The key to get the calculated item from.

Returns ​

[any, string]

The object and key of the calculated item.