MCPcopy Create free account
hub / github.com/antvis/AVA / integer

Function integer

evals/_shared/args.js:23–27  ·  view source on GitHub ↗
(value, name, min = 1)

Source from the content-addressed store, hash-verified

21}
22
23function integer(value, name, min = 1) {
24 const n = Number(value);
25 if (!Number.isSafeInteger(n) || n < min) throw new Error(`--${name} must be an integer >= ${min}`);
26 return n;
27}
28
29export { takeOptions, integer };

Callers 10

selectSamplesFunction · 0.90
mainFunction · 0.90
selectSamplesFunction · 0.90
mainFunction · 0.90
readStrategyFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected