Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DavidHDev/react-bits
/ medianPush
Function
medianPush
src/content/Backgrounds/GridScan/GridScan.jsx:870–873 ·
view source on GitHub ↗
(buf, v, maxLen)
Source
from the content-addressed store, hash-verified
868
}
869
870
function medianPush(buf, v, maxLen) {
871
buf.push(v);
872
if (buf.length > maxLen) buf.shift();
873
}
874
875
function median(buf) {
876
if (buf.length === 0) return 0;
Callers
1
detect
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected