Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Openpanel-dev/openpanel
/ avg
Function
avg
apps/api/src/agents/tools/profile.ts:255–256 ·
view source on GitHub ↗
(sel: (m: typeof valid[number]) => number)
Source
from the content-addressed store, hash-verified
253
}
254
255
const
avg = (sel: (m: typeof valid[number]) => number) =>
256
valid.reduce((s, m) => s + sel(m), 0) / valid.length;
257
258
const
project_avg = {
259
sessions: avg((m) => m.sessions),
Callers
1
profile.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected