MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / clamp

Function clamp

js/main.js:16–18  ·  view source on GitHub ↗
(number, min, max)

Source from the content-addressed store, hash-verified

14 };
15
16 const clamp = function(number, min, max) {
17 return Math.max(min, Math.min(number, max));
18 }
19
20 // Initialize the application, and populates dropdowns and the default post.
21

Callers 3

changeEditingPanelFunction · 0.85
changeEditingSubPanelFunction · 0.85
changeEditingExitTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected