Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colbymchenry/codegraph
/ oneOf
Function
oneOf
telemetry-worker/src/index.ts:58–60 ·
view source on GitHub ↗
(allowed: readonly string[])
Source
from the content-addressed store, hash-verified
56
57
const
oneOf =
58
(allowed: readonly string[]): Sanitize =>
59
(v) =>
60
typeof v ===
'string'
&& allowed.includes(v) ? v : undefined;
61
62
const
matching =
63
(re: RegExp, maxLen: number): Sanitize =>
Callers
1
index.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected