MCPcopy
hub / github.com/ChartGPU/ChartGPU / clamp

Function clamp

examples/data-update-animation/main.ts:29–29  ·  view source on GitHub ↗
(v: number, min: number, max: number)

Source from the content-addressed store, hash-verified

27};
28
29const clamp = (v: number, min: number, max: number): number => Math.max(min, Math.min(max, v));
30
31const theme: ThemeConfig = {
32 ...darkTheme,

Callers 1

updateChartsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected