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

Method peek

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

Source from the content-addressed store, hash-verified

87 }
88
89 peek(): T | undefined {
90 if (this._length === 0) {
91 return undefined
92 }
93 return this._items[this._head]
94 }
95
96 at(index: number): T | undefined {
97 if (index >= this._length || index < -this.length) {

Callers 2

tickMethod · 0.80
arrays.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected