MCPcopy Create free account
hub / github.com/adobe/react-spectrum / mod

Function mod

packages/react-stately/src/color/useColorWheelState.ts:81–83  ·  view source on GitHub ↗
(n: number, m: number)

Source from the content-addressed store, hash-verified

79}
80
81function mod(n: number, m: number) {
82 return ((n % m) + m) % m;
83}
84
85function roundDown(v: number) {
86 let r = Math.floor(v);

Callers 3

setHueFunction · 0.70
incrementFunction · 0.70
decrementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected