MCPcopy Create free account
hub / github.com/apache/maka / parsePositiveInt

Function parsePositiveInt

scripts/deepseek-live-cost-baseline.mjs:2842–2844  ·  view source on GitHub ↗
(value, fallback)

Source from the content-addressed store, hash-verified

2840}
2841
2842function parsePositiveInt(value, fallback) {
2843 return parseOptionalPositiveInt(value) ?? fallback;
2844}
2845
2846function parseOptionalPositiveInt(value) {
2847 if (!value) return undefined;

Calls 1

parseOptionalPositiveIntFunction · 0.70

Tested by

no test coverage detected