Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MCSManager/MCSManager
/ isEmpty
Function
isEmpty
common/src/typecheck.ts:59–61 ·
view source on GitHub ↗
(v: any)
Source
from the content-addressed store, hash-verified
57
}
58
59
export
function
isEmpty(v: any): boolean {
60
return
v === null || v === undefined;
61
}
62
63
export
function
supposeValue<T>(v: any, def?: T) {
64
if
(isEmpty(v))
return
def;
Callers
5
instance_operate_router.ts
File · 0.85
toText
Function · 0.85
toNumber
Function · 0.85
toBoolean
Function · 0.85
supposeValue
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected