MCPcopy Create free account
hub / github.com/denoland/std / getTargetValue

Function getTargetValue

toml/_parser.ts:169–177  ·  view source on GitHub ↗
(target: Record<string, unknown>, keys: string[])

Source from the content-addressed store, hash-verified

167}
168
169function getTargetValue(target: Record<string, unknown>, keys: string[]) {
170 const key = keys[0];
171 if (!key) {
172 throw new Error(
173 "Cannot parse the TOML: key length is not a positive number",
174 );
175 }
176 return target[key];
177}
178
179function deepAssignTable(
180 target: Record<string, unknown>,

Callers 2

deepAssignTableFunction · 0.85
deepAssignTableArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected