MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / isTop

Method isTop

pkg/util/utilfn/partial.go:43–51  ·  view source on GitHub ↗
(items ...stackItem)

Source from the content-addressed store, hash-verified

41 return s[len(s)-1]
42}
43func (s jsonStack) isTop(items ...stackItem) bool {
44 top := s.peek()
45 for _, item := range items {
46 if top == item {
47 return true
48 }
49 }
50 return false
51}
52
53func (s *jsonStack) replaceTop(item stackItem) {
54 if len(*s) > 0 {

Callers 1

repairJsonFunction · 0.95

Calls 1

peekMethod · 0.95

Tested by

no test coverage detected