MCPcopy
hub / github.com/slopus/happy / has

Method has

packages/happy-server/sources/utils/lru.ts:68–75  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

66 }
67
68 has(value: T): boolean {
69 const node = this.map.get(value);
70 if (node) {
71 this.moveToFront(node);
72 return true;
73 }
74 return false;
75 }
76
77 delete(value: T): boolean {
78 const node = this.map.get(value);

Callers 15

createEnvironmentFunction · 0.45
ToolGroupView.tsxFile · 0.45
ChatList.tsxFile · 0.45
buildTreeFunction · 0.45
FilesSidebar.tsxFile · 0.45
isTerminalToolNameFunction · 0.45
getToolSummaryCategoryFunction · 0.45
hasFileLikeEndingFunction · 0.45
stringifyToolCommandFunction · 0.45
RootLayoutFunction · 0.45

Calls 1

moveToFrontMethod · 0.95

Tested by 1

seedSessionFunction · 0.36