MCPcopy
hub / github.com/coder/mux / isNonNegativeInteger

Function isNonNegativeInteger

src/common/utils/numbers.ts:12–16  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

10}
11
12export function isNonNegativeInteger(value: unknown): value is number {
13 return (
14 typeof value === "number" && Number.isFinite(value) && Number.isInteger(value) && value >= 0
15 );
16}

Callers 15

visitorMethod · 0.90
updateHistoryMethod · 0.90
deleteMessageMethod · 0.90
truncateAfterMessageMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected