MCPcopy
hub / github.com/vuejs/devtools-v6 / shift

Method shift

packages/app-frontend/src/util/queue.ts:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 }
22
23 shift(): T | null {
24 if (this.firstItem) {
25 const item = this.firstItem
26 this.firstItem = item.next
27 if (!this.firstItem) {
28 this.lastItem = null
29 }
30 this.existsMap.delete(item.current)
31 return item.current
32 }
33 return null
34 }
35
36 isEmpty() {
37 return !this.firstItem

Callers 5

onDoneMethod · 0.80
clearErrorFunction · 0.80
_nextSendMethod · 0.80
setMethod · 0.80
hasMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected