MCPcopy Create free account
hub / github.com/witheve/Eve / remove

Method remove

src/db.ts:63–74  ·  view source on GitHub ↗
(key: string, value: V)

Source from the content-addressed store, hash-verified

61 }
62
63 remove(key: string, value: V) {
64 if(!this.index[key]) return false;
65
66 let ix = this.index[key].indexOf(value)
67 if(ix !== -1) {
68 if(!this.dirty[key]) this.dirty[key] = [];
69 this.index[key][ix] = this.index[key].pop()!;
70 this.dirty[key].push(value);
71 return true;
72 }
73 return false;
74 }
75};
76
77interface IndexedScalar<V>{[v: string]: V}

Callers 4

handleDiffFunction · 0.45
updateDocFunction · 0.45
loadDocumentMethod · 0.45
updateWidgetsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected