MCPcopy Create free account
hub / github.com/codeaashu/claude-code / buildNestedObject

Function buildNestedObject

src/tools/ConfigTool/ConfigTool.ts:455–467  ·  view source on GitHub ↗
(
  path: string[],
  value: unknown,
)

Source from the content-addressed store, hash-verified

453}
454
455function buildNestedObject(
456 path: string[],
457 value: unknown,
458): Record<string, unknown> {
459 if (path.length === 0) {
460 return {}
461 }
462 const key = path[0]!
463 if (path.length === 1) {
464 return { [key]: value }
465 }
466 return { [key]: buildNestedObject(path.slice(1), value) }
467}
468

Callers 1

callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected