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

Function optionalInt

scripts/stress/simdeck.mjs:262–268  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

260}
261
262function optionalInt(value) {
263 if (value == null || value === "") {
264 return null;
265 }
266 const parsed = Number.parseInt(String(value), 10);
267 return Number.isFinite(parsed) ? parsed : null;
268}
269
270function optionalNumber(value) {
271 if (value == null || value === "") {

Callers 4

simdeck.mjsFile · 0.70
discoverListenerPidFunction · 0.70
rssKbForPidFunction · 0.70
positiveIntFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected