Skip to main content

Function: getNestedValue()

function 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.