Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TraderAlice/OpenAlice
/ isNonNegativeInt
Function
isNonNegativeInt
src/workspaces/protocol.ts:121–123 ·
view source on GitHub ↗
(x: unknown)
Source
from the content-addressed store, hash-verified
119
}
120
121
function
isNonNegativeInt(x: unknown): x is number {
122
return
typeof x ===
'number'
&& Number.isFinite(x) && x >= 0;
123
}
Callers
1
isClientControlMessage
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected