Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MCSManager/MCSManager
/ supposeValue
Function
supposeValue
common/src/typecheck.ts:63–66 ·
view source on GitHub ↗
(v: any, def?: T)
Source
from the content-addressed store, hash-verified
61
}
62
63
export
function
supposeValue<T>(v: any, def?: T) {
64
if
(isEmpty(v))
return
def;
65
return
v;
66
}
Callers
nothing calls this directly
Calls
1
isEmpty
Function · 0.85
Tested by
no test coverage detected