Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ mod
Function
mod
packages/@internationalized/date/src/utils.ts:17–19 ·
view source on GitHub ↗
(amount: number, numerator: number)
Source
from the content-addressed store, hash-verified
15
};
16
17
export
function
mod(amount: number, numerator: number): number {
18
return
amount - numerator * Math.floor(amount / numerator);
19
}
Callers
4
getDaysInMonth
Method · 0.90
isLeapYear
Function · 0.90
hebrewDelay1
Function · 0.90
fromJulianDay
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected