MCPcopy Index your code
hub / github.com/atomicdata-dev/atomic-data-browser / get

Method get

lib/src/resource.ts:103–110  ·  view source on GitHub ↗

Get a Value by its property

(propUrl: string)

Source from the content-addressed store, hash-verified

101
102 /** Get a Value by its property */
103 get(propUrl: string): JSONValue | null {
104 const result = this.propvals.get(propUrl);
105 if (result == undefined) {
106 // throw new Error(`not found property ${propUrl} in ${this.subject}`);
107 return null;
108 }
109 return result;
110 }
111
112 /**
113 * Get a Value by its property, returns as Array or throws error. Returns

Callers 15

canWriteMethod · 0.95
getClassesMethod · 0.95
getRightsMethod · 0.95
usePropertyFunction · 0.80
useValueFunction · 0.80
commit.test.tsFile · 0.80
getArrayMethod · 0.80
addResourceMethod · 0.80
getResourceLoadingMethod · 0.80
getResourceAsyncMethod · 0.80
getPropertyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected