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

Method getArray

lib/src/resource.ts:116–122  ·  view source on GitHub ↗

* Get a Value by its property, returns as Array or throws error. Returns * empty array if there is no value

(propUrl: string)

Source from the content-addressed store, hash-verified

114 * empty array if there is no value
115 */
116 getArray(propUrl: string): string[] | null {
117 const result = this.propvals.get(propUrl);
118 if (result == undefined) {
119 return [];
120 }
121 return valToArray(result);
122 }
123
124 /** Get a Value by its property */
125 getClasses(): string[] {

Callers 2

getRightsMethod · 0.95

Calls 2

valToArrayFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected