MCPcopy Create free account
hub / github.com/arktypeio/arktype / mod

Function mod

ark/docs/components/shell/SearchPanel.tsx:399–400  ·  view source on GitHub ↗
(n: number, length: number)

Source from the content-addressed store, hash-verified

397
398/** `n` wrapped into `0..length`, or `n` itself when there's nothing to wrap */
399const mod = (n: number, length: number) =>
400 length ? ((n % length) + length) % length : n
401
402const resultsOf = (
403 loaded: Loaded,

Callers 2

SearchPanelFunction · 0.85
onScopeKeyDownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected