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

Method getClasses

lib/src/resource.ts:125–137  ·  view source on GitHub ↗

Get a Value by its property

()

Source from the content-addressed store, hash-verified

123
124 /** Get a Value by its property */
125 getClasses(): string[] {
126 const classesVal = this.get(properties.isA);
127 if (classesVal == undefined) {
128 // throw new Error(`not found property ${propUrl} in ${this.subject}`);
129 return [];
130 }
131 try {
132 const arr = valToArray(classesVal);
133 return arr;
134 } catch (e) {
135 return [];
136 }
137 }
138
139 /**
140 * Returns the current Commit Builder, which describes the pending changes of

Callers 1

constructIndexFunction · 0.80

Calls 2

getMethod · 0.95
valToArrayFunction · 0.90

Tested by

no test coverage detected