getValueByPath
function@lpm.dev/neo.react-forms
function getValueByPath<T>(obj: T, path: string): unknown
Get value at a nested path
Parameters
obj
TObject to get value frompath
stringDot-separated path (e.g., "user.profile.name")Returns
unknownValue at path or undefinedExample
getValueByPath({ user: { name: "John" } }, "user.name") // "John"