MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / positiveInt

Function positiveInt

scripts/stress/simdeck.mjs:257–260  ·  view source on GitHub ↗
(value, fallback)

Source from the content-addressed store, hash-verified

255}
256
257function positiveInt(value, fallback) {
258 const parsed = optionalInt(value);
259 return parsed && parsed > 0 ? parsed : fallback;
260}
261
262function optionalInt(value) {
263 if (value == null || value === "") {

Callers 1

simdeck.mjsFile · 0.70

Calls 1

optionalIntFunction · 0.70

Tested by

no test coverage detected