MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / dequeue

Method dequeue

cli/src/utils/arrays.ts:77–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 dequeue(): T | undefined {
78 if (this._length === 0) {
79 return undefined
80 }
81
82 const item = this._items[this._head]
83 this._items[this._head] = undefined as T
84 this._head = (this._head + 1) % this._items.length
85 this._length--
86 return item
87 }
88
89 peek(): T | undefined {
90 if (this._length === 0) {

Callers 2

tickMethod · 0.80
arrays.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected