Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MCSManager/MCSManager
/ toBoolean
Function
toBoolean
common/src/typecheck.ts:54–57 ·
view source on GitHub ↗
(v: any)
Source
from the content-addressed store, hash-verified
52
}
53
54
export
function
toBoolean(v: any): boolean | null {
55
if
(isEmpty(v))
return
null;
56
return
Boolean(v);
57
}
58
59
export
function
isEmpty(v: any): boolean {
60
return
v === null || v === undefined;
Callers
3
general_user_router.ts
File · 0.85
instance_operate_router.ts
File · 0.85
info_router.ts
File · 0.85
Calls
1
isEmpty
Function · 0.85
Tested by
no test coverage detected