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

Function hasNested

cli/parse_args.ts:476–483  ·  view source on GitHub ↗
(object: NestedMapping, keys: string[])

Source from the content-addressed store, hash-verified

474}
475
476function hasNested(object: NestedMapping, keys: string[]): boolean {
477 for (const key of keys) {
478 const value = object[key];
479 if (!Object.hasOwn(object, key)) return false;
480 object = value as NestedMapping;
481 }
482 return true;
483}
484
485function aliasIsBoolean(
486 aliasMap: Map<string, Set<string>>,

Callers 1

parseArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected