Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ether/etherpad
/ mod
Function
mod
src/node/security/SecretRotator.ts:56–56 ·
view source on GitHub ↗
(a:number, n:number)
Source
from the content-addressed store, hash-verified
54
55
// In JavaScript, the % operator is remainder, not modulus.
56
const
mod = (a:number, n:number) => ((a % n) + n) % n;
57
const
intervalStart = (t:number, interval:number) => t - mod(t, interval);
58
59
/**
Callers
1
intervalStart
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected