MCPcopy Create free account
hub / github.com/TruthHun/BookStack / peekCommand

Function peekCommand

static/editor.md/lib/codemirror/mode/stex/stex.js:26–32  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

24 }
25
26 function peekCommand(state) {
27 if (state.cmdState.length > 0) {
28 return state.cmdState[state.cmdState.length - 1];
29 } else {
30 return null;
31 }
32 }
33
34 function popCommand(state) {
35 var plug = state.cmdState.pop();

Callers 2

normalFunction · 0.85
beginParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected