MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / medianPush

Function medianPush

src/tailwind/Backgrounds/GridScan/GridScan.jsx:869–872  ·  view source on GitHub ↗
(buf, v, maxLen)

Source from the content-addressed store, hash-verified

867}
868
869function medianPush(buf, v, maxLen) {
870 buf.push(v);
871 if (buf.length > maxLen) buf.shift();
872}
873
874function median(buf) {
875 if (buf.length === 0) return 0;

Callers 1

detectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected