MCPcopy
hub / github.com/tinyplex/tinybase / goBackwardImpl

Function goBackwardImpl

src/checkpoints/index.ts:145–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 };
144
145 const goBackwardImpl = () => {
146 if (!arrayIsEmpty(backwardIds)) {
147 arrayUnshift(forwardIds, addCheckpointImpl());
148 updateStore(0, currentId as Id);
149 currentId = arrayPop(backwardIds);
150 checkpointsChanged = 1;
151 }
152 };
153
154 const goForwardImpl = () => {
155 if (!arrayIsEmpty(forwardIds)) {

Callers 1

goBackwardFunction · 0.70

Calls 5

arrayIsEmptyFunction · 0.90
arrayUnshiftFunction · 0.90
arrayPopFunction · 0.90
addCheckpointImplFunction · 0.70
updateStoreFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…