MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / popStep

Function popStep

source/route.js:19–24  ·  view source on GitHub ↗
(route)

Source from the content-addressed store, hash-verified

17};
18
19export const popStep = (route) => {
20 if (!route.steps.isEmpty) {
21 route.length--;
22 }
23 route.steps.pop();
24};
25
26export const getDrawnScreenFromRoute = (route, stepNumber = route.length) => {
27 const { start, steps } = route;

Callers 1

pickInScreenFunction · 0.90

Calls 1

popMethod · 0.80

Tested by

no test coverage detected