MCPcopy Index your code
hub / github.com/vantezzen/autoform / getPathInObject

Function getPathInObject

packages/react/src/utils.ts:68–78  ·  view source on GitHub ↗
(obj: any, path: string[])

Source from the content-addressed store, hash-verified

66}
67
68export function getPathInObject(obj: any, path: string[]): any {
69 let current = obj;
70 for (const key of path) {
71 current = current[key];
72
73 if (current === undefined) {
74 return undefined;
75 }
76 }
77 return current;
78}

Callers 1

AutoFormFieldFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected