Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/wavetermdev/waveterm
/ counterInc
Function
counterInc
frontend/app/store/counters.ts:10–14 ·
view source on GitHub ↗
(name: string, incAmt: number = 1)
Source
from the content-addressed store, hash-verified
8
}
9
10
function
counterInc(name: string, incAmt: number = 1) {
11
let
count = Counters.get(name) ?? 0;
12
count += incAmt;
13
Counters.set(name, count);
14
}
15
16
function
countersPrint() {
17
let
outStr =
""
;
Callers
1
block.tsx
File · 0.90
Calls
2
get
Method · 0.80
set
Method · 0.80
Tested by
no test coverage detected