Skip to main content

Function: modStrict()

modStrict(n, m): number

Defined in: utils/utils.ts:602

a stricter variant of the mod operator that will never return a negative number

Parameters

n

number

the mod "numerator" (often an array index)

m

number

the mod "denominator" (often array size)

Returns

number