MCPcopy Index your code
hub / github.com/tinyplex/tinybase / clearCheckpointIds

Function clearCheckpointIds

src/checkpoints/index.ts:107–111  ·  view source on GitHub ↗
(checkpointIds: Ids, to?: number)

Source from the content-addressed store, hash-verified

105 };
106
107 const clearCheckpointIds = (checkpointIds: Ids, to?: number): void =>
108 arrayForEach(
109 arrayClear(checkpointIds, to ?? size(checkpointIds)),
110 clearCheckpointId,
111 );
112
113 const trimBackwardsIds = (): void =>
114 clearCheckpointIds(backwardIds, size(backwardIds) - backwardIdsSize);

Callers 4

trimBackwardsIdsFunction · 0.70
storeChangedFunction · 0.70
clearFunction · 0.70
clearForwardFunction · 0.70

Calls 3

arrayForEachFunction · 0.90
arrayClearFunction · 0.90
sizeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…