Skip to main content

Function: extractNestedFieldValue()

function extractNestedFieldValue(source: unknown, path: string): unknown;

Defined in: electron/services/monitoring/shared/monitorServiceHelpers.ts:302

Extracts a nested field value from an arbitrary object using a dot-separated path.

Parameters​

source​

unknown

Source object to traverse.

path​

string

Dot-separated path (for example details.status.code).

Returns​

unknown

The nested value when found; otherwise undefined.