MCPcopy 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
17export function mod(amount: number, numerator: number): number {
18 return amount - numerator * Math.floor(amount / numerator);
19}

Callers 4

getDaysInMonthMethod · 0.90
isLeapYearFunction · 0.90
hebrewDelay1Function · 0.90
fromJulianDayMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected