MCPcopy
hub / github.com/parinfer/parinfer.js / stackPop

Function stackPop

parinfer.js:218–224  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

216 }
217
218 function stackPop (s) {
219 if (RUN_ASSERTS) {
220 assert(isArray(s), 'used stackPop with not an Array')
221 }
222 const itm = s.pop()
223 return itm
224 }
225
226 if (RUN_ASSERTS) {
227 assert(stackPop(['a']) === 'a')

Callers 6

parinfer.jsFile · 0.85
onMatchedCloseParenFunction · 0.85
popParenTrailFunction · 0.85
correctParenTrailFunction · 0.85
appendParenTrailFunction · 0.85
onCommentLineFunction · 0.85

Calls 1

isArrayFunction · 0.85

Tested by

no test coverage detected