MCPcopy
hub / github.com/angular/angular-cli / get

Function get

packages/angular_devkit/core/src/workspace/json/utilities.ts:82–97  ·  view source on GitHub ↗
(target: {}, p: ProxyPropertyKey)

Source from the content-addressed store, hash-verified

80 return Reflect.has(target, p);
81 },
82 get(target: {}, p: ProxyPropertyKey): unknown {
83 if (excluded.has(p) || (included && !included.has(p))) {
84 return undefined;
85 }
86
87 const value = Reflect.get(target, p);
88 if (typeof p === 'symbol') {
89 return value;
90 }
91
92 if ((isJsonObject(value) && !(value instanceof Map)) || Array.isArray(value)) {
93 return create(value, [...path, p], reporter);
94 } else {
95 return value;
96 }
97 },
98 set(target: {}, p: ProxyPropertyKey, value: unknown): boolean {
99 if (excluded.has(p) || (included && !included.has(p))) {
100 return false;

Callers

nothing calls this directly

Calls 4

isJsonObjectFunction · 0.90
createFunction · 0.85
hasMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected