MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / getOrGenerateID

Function getOrGenerateID

lib/edge-runtime/apiResponseSimplification.ts:52–59  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

50 }
51
52 function getOrGenerateID(value: string): string {
53 let id = store[value];
54 if (!id) {
55 id = `ID${++idIdx}`;
56 store[value] = id;
57 }
58 return id;
59 }
60
61 findAndReplaceID(removedObj);
62 return { cleanedObject: removedObj, idStore: store };

Callers 1

findAndReplaceIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected