MCPcopy Create free account
hub / github.com/error311/FileRise / clampNum

Function clampNum

public/js/folderManager.js:2992–2994  ·  view source on GitHub ↗
(n, min, max)

Source from the content-addressed store, hash-verified

2990let __cryptoTransferUiJob = null;
2991
2992function clampNum(n, min, max) {
2993 return Math.max(min, Math.min(max, n));
2994}
2995
2996function formatBytes(n) {
2997 const num = Number(n || 0);

Callers 3

readCryptoEstimateSpeedFunction · 0.85
estimateCryptoProgressFunction · 0.85
renderCryptoJobUiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected