Skip to main content

getNestedValue

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/state/core/stateManagerPathUtils / getNestedValue

Function: getNestedValue()

getNestedValue(obj: unknown, path: string): unknown

Defined in: utils/state/core/stateManagerPathUtils.ts:11

Gets a nested value from an object by dot-notation path.

Parameters​

obj​

unknown

Source object.

path​

string

Dot-notation path.

Returns​

unknown

Value at the path, or undefined when the path cannot be resolved.