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

Function clampCapacity

scripts/studio-host-provider.mjs:683–688  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

681}
682
683function clampCapacity(value) {
684 if (!Number.isFinite(value)) {
685 return 1;
686 }
687 return Math.min(16, Math.max(1, Math.floor(value)));
688}
689
690function parseArgs(argv) {
691 const args = {};

Callers 1

runFunction · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected