MCPcopy 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
121function isNonNegativeInt(x: unknown): x is number {
122 return typeof x === 'number' && Number.isFinite(x) && x >= 0;
123}

Callers 1

isClientControlMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected