Skip to main content

setNestedValue

FitFileViewer - API Documentation v30.0.1


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

Function: setNestedValue()

setNestedValue(obj: unknown, path: string, value: unknown): void

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

Sets a nested value on an object by dot-notation path, creating missing intermediate objects as needed.

Parameters​

obj​

unknown

Target object.

path​

string

Dot-notation path.

value​

unknown

Value to set.

Returns​

void