MCPcopy
hub / github.com/witheve/Eve / asObject

Method asObject

src/runtime/indexes.ts:137–146  ·  view source on GitHub ↗
(e, recursive = false, singleAttributes = false)

Source from the content-addressed store, hash-verified

135 }
136
137 asObject(e, recursive = false, singleAttributes = false) : any {
138 let obj = {};
139 let attributes = this.asValues(e);
140 if(attributes) {
141 for(let attribute of attributes) {
142 obj[attribute] = this.asValues(e, attribute, undefined, undefined, recursive, singleAttributes);
143 }
144 }
145 return obj;
146 }
147
148 toTriples(withNode?, startIndex?) {
149 let triples = [];

Callers 15

asValuesMethod · 0.95
onFixpointMethod · 0.45
tokenInfoFunction · 0.45
findCardinalityFunction · 0.45
findValueFunction · 0.45
nodeIdToRecordFunction · 0.45
findRecordsFromTokenFunction · 0.45
findSourceFunction · 0.45
findRelatedFunction · 0.45
findAffectorFunction · 0.45
findFailureFunction · 0.45
findRootDrawersFunction · 0.45

Calls 1

asValuesMethod · 0.95

Tested by

no test coverage detected