MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / reduce

Function reduce

libraries/habitat-embed.js:682–685  ·  view source on GitHub ↗
(...numbers)

Source from the content-addressed store, hash-verified

680 };
681
682 const reduce = (...numbers) => {
683 const divisor = gcd(...numbers);
684 return numbers.map((n) => n / divisor);
685 };
686
687 const wrap = (number, min, max) => {
688 const difference = max - min;

Callers

nothing calls this directly

Calls 1

gcdFunction · 0.85

Tested by

no test coverage detected