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

Function clear

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:590–600  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588 return checkpoints;
589 };
590 const clear = () => {
591 clearCheckpointIds(backwardIds);
592 clearCheckpointIds(forwardIds);
593 if (!isUndefined(currentId)) {
594 clearCheckpointId(currentId);
595 }
596 currentId = void 0;
597 nextCheckpointId = 0;
598 addCheckpoint();
599 return checkpoints;
600 };
601 const clearForward = () => {
602 if (!arrayIsEmpty(forwardIds)) {
603 clearCheckpointIds(forwardIds);

Callers

nothing calls this directly

Calls 4

clearCheckpointIdsFunction · 0.70
isUndefinedFunction · 0.70
clearCheckpointIdFunction · 0.70
addCheckpointFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…