MCPcopy Create free account
hub / github.com/SecureAI-Tools/SecureAI-Tools / parseInteger

Function parseInteger

apps/web/lib/core/number-utils.ts:1–12  ·  view source on GitHub ↗
(h: string | null | undefined)

Source from the content-addressed store, hash-verified

1export const parseInteger = (h: string | null | undefined): number | null => {
2 if (!h) {
3 return null;
4 }
5
6 const i = parseInt(h);
7 if (isNaN(i)) {
8 return null;
9 }
10
11 return i;
12};

Callers 2

parseResponseHeadersFunction · 0.90
getInitialTableStateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected