MCPcopy
hub / github.com/graphif/project-graph / tail

Method tail

packages/data-structures/src/Queue.ts:29–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 tail(): T | undefined {
30 if (this.isEmpty()) {
31 return undefined;
32 }
33 return this.items[this.items.length - 1];
34 }
35
36 clear(): void {
37 this.items = [];

Callers 1

Queue.test.tsFile · 0.80

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected