Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
683
function
clampCapacity(value) {
684
if
(!Number.isFinite(value)) {
685
return
1;
686
}
687
return
Math.min(16, Math.max(1, Math.floor(value)));
688
}
689
690
function
parseArgs(argv) {
691
const
args = {};
Callers
1
run
Function · 0.85
Calls
1
max
Method · 0.80
Tested by
no test coverage detected